@model Webzine.WebApplication.Areas.Administration.ViewModels.Style.StyleEditViewModel

@{
    ViewData["Title"] = "Editer un style";
}

<div class="container mt-4">
    <h1 class="mb-3">Editer un style</h1>
    <hr />

    <form asp-action="Edit" method="post" class="mt-4">

        @* Champ caché pour l'ID *@
        <input type="hidden" asp-for="IdStyle" />

        @* Conteneur Flex pour alignement horizontal (Label - Input - Bouton) *@
        <div class="d-flex align-items-center">

            @* Label *@
            <div class="me-3">
                <label asp-for="Libelle" class="col-form-label fw-bold">
                    Libellé<span class="text-danger">*</span>
                </label>
            </div>

            @* Input *@
            <div class="me-3">
                <input asp-for="Libelle" class="form-control" />
            </div>

            @* Bouton *@
            <div>
                <button type="submit" class="btn btn-primary">Sauvegarder</button>
            </div>
        </div>

        @* Zone d'erreur spécifique au champ *@
        <div class="mt-2">
            <span asp-validation-for="Libelle" class="text-danger"></span>
        </div>

    </form>

    <div class="mt-4">
        <a asp-action="Index" class="btn-link">Retour à l'administration des styles</a>
    </div>
</div>
