@model FamilyBudget.Models.Facture
    <link rel="stylesheet" href="~/css/dep1.css" />
<h2>Modifier une Facture</h2>
<form asp-action="Edit">
    <input type="hidden" asp-for="IdFacture" />
    <div class="form-group">
        <label asp-for="IdCompte"></label>
        <select asp-for="IdCompte" asp-items="ViewBag.IdCompte" class="form-control"></select>
        <span asp-validation-for="IdCompte" class="text-danger"></span>
    </div>
    <label asp-for="CategorieFacture"></label>
    <select asp-for="CategorieFacture" id="categorie">
        <option value="electricite">Électricité</option>
        <option value="eau">Eau</option>
        <option value="internet">Internet</option>
        <option value="telephone">Téléphone</option>
        <option value="Accueil/Loyer">Accueil/Loyer</option>
        <option value="Alimentation/Épicerie">Alimentation/Épicerie</option>
        <option value="Dépenses diverses">Dépenses diverses</option>
        <option value="Divertissement">Divertissement</option>
        <option value="Assurance/Médical">Assurance/Médical</option>
        <option value="Divers/Ponctuel">Divers/Ponctuel</option>
    </select>
    <span asp-validation-for="CategorieFacture" class="text-danger"></span>

    <div class="form-group">
        <label asp-for="Montant"></label>
        <input asp-for="Montant" class="form-control" />
        <span asp-validation-for="Montant" class="text-danger"></span>
    </div>
    <div class="form-group">
        <label asp-for="DateFacture"></label>
        <input asp-for="DateFacture" type="date" class="form-control" />
        <span asp-validation-for="DateFacture" class="text-danger"></span>
    </div>
    <button type="submit" class="btn btn-success">Enregistrer</button>
</form>

<br />
<br /><span class="text-danger">@ViewBag.Message</span>
