@using CD67.FicheCollege.MVC.Models @model RestaurationTypesRepaViewModel @{ ViewBag.Title = "Administration - Les Types de Repas"; Layout = "~/Views/Shared/_AdminLayout.cshtml"; RestaurationTypesRepa repas = Model.Obj; } @if (Model.Acces == ModeAcces.Modification) {

@repas.Libelle

} else {

Nouveau Type de Repas

} @using (Html.BeginForm()) { @Html.AntiForgeryToken()
@Html.ValidationSummary(true, "", new { @class = "text-danger" }) @Html.HiddenFor(model => repas.Id) @Html.HiddenFor(model => repas.Ordre)
@Html.LabelFor(model => repas.Libelle, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => repas.Libelle, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => repas.Libelle, "", new { @class = "text-danger" })
@Html.LabelFor(model => repas.Valid, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => repas.Valid, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => repas.Valid, "", new { @class = "text-danger" })
Annuler
}