| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- @using CD67.FicheCollege.MVC.Models
- @model RestaurationTypeViewModel
- @{
- ViewBag.Title = "Administration - Les Types de Restauration";
- Layout = "~/Views/Shared/_AdminLayout.cshtml";
- RestaurationType type = Model.Obj;
- }
- @if (Model.Acces == ModeAcces.Modification)
- {
- <h2>@type.Libelle</h2>
- }
- else
- {
- <h2>Nouveau Type de Restauration</h2>
- }
- @using (Html.BeginForm())
- {
- @Html.AntiForgeryToken()
-
- <div class="form-horizontal">
- @Html.ValidationSummary(true, "", new { @class = "text-danger" })
- @Html.HiddenFor(model => type.Id)
- @Html.HiddenFor(model => type.Ordre)
- <div class="form-group">
- @Html.LabelFor(model => type.Libelle, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-10">
- @Html.EditorFor(model => type.Libelle, new { htmlAttributes = new { @class = "form-control" } })
- @Html.ValidationMessageFor(model => type.Libelle, "", new { @class = "text-danger" })
- </div>
- </div>
- <div class="form-group">
- @Html.LabelFor(model => type.Valid, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-10">
- @Html.EditorFor(model => type.Valid, new { htmlAttributes = new { @class = "form-control" } })
- @Html.ValidationMessageFor(model => type.Valid, "", new { @class = "text-danger" })
- </div>
- </div>
- <div class="form-group btn-bar">
- <a href=@Url.Action("Index") class="btn btn-default">Annuler</a>
- <input type="submit" value="Enregistrer" class="btn btn-primary" />
- </div>
- </div>
- }
|