@model FamilyBudget.Models.Revenu
    <link rel="stylesheet" href="~/css/rev.css" />
<h2>Modifier un Revenu</h2>
<form asp-action="Edit">
    <input type="hidden" asp-for="IdRevenu" />

    <div class="form-group">
        <label asp-for="IdCompte"></label>
        <select asp-for="IdCompte" class="form-control" asp-items="ViewBag.IdCompte"></select>
        <span asp-validation-for="IdCompte" class="text-danger"></span>
    </div>

    <div class="form-group">
        <label asp-for="SourceRevenu"></label>
        <input asp-for="SourceRevenu" class="form-control" />
    </div>
    <div class="form-group">
        <label asp-for="Montant"></label>
        <input asp-for="Montant" class="form-control" />
    </div>
    <div class="form-group">
        <label asp-for="DateRevenu"></label>
        <input asp-for="DateRevenu" type="date" class="form-control" />
    </div>
    <button type="submit" class="btn btn-success">Enregistrer</button>
</form>