@model FamilyBudget.Models.Bugdet
<html>
    <head>
        <title>Modifier Budget</title>
        <link rel="stylesheet" href="~/css/budcss.css">
        <style>
            form #btne {
                
            }
        </style>
    </head>
    <body>
        <h2>Modifier un Budget</h2>
        <form asp-action="Edit">
            @if (TempData["ErreurUtilisateur"] != null)
            {
                <p id="err" style="color: red;">@TempData["ErreurUtilisateur"]</p>
            }
            else
            {
                <div class="form-group">
                    <label asp-for="IdUtilisateur">Utilisateur</label>
                    <select asp-for="IdUtilisateur" class="form-control" asp-items="ViewBag.IdUtilisateur"></select>
                    <span asp-validation-for="IdUtilisateur" class="text-danger"></span>
                </div>          
            }
            <input type="hidden" asp-for="IdBudget" />
            <div class="form-group">
                <label asp-for="Categorie">Categorie</label>
                <input asp-for="Categorie" class="form-control" />
            </div>
            <div class="form-group">
                <label asp-for="MontantAlloue">Montant alloue</label>
                <input asp-for="MontantAlloue" class="form-control" />
            </div>
            <button type="submit" class="btn btn-success" style="padding: 10px 20px; border-radius: 5px; transition: all 0.3s ease-in-out; font-weight: bold;">Enregistrer</button>     @**@
        </form>
    </body>
</html>
    


