| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- @using CD67.FicheCollege.MVC.Models
- @model RestaurationTypeViewModel
- @{
- ViewBag.Title = "Modification";
- Layout = "~/Views/Shared/_AdminLayout.cshtml";
- RestaurationType type = Model.Obj;
- }
- <h2>Modification</h2>
- @using (Html.BeginForm())
- {
- @Html.AntiForgeryToken()
-
- <div class="form-horizontal">
- <h4>Type de restauration</h4>
- <hr />
- @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">
- <div class="col-md-offset-2 col-md-10">
- <input type="submit" value="Enregistrer" class="btn btn-default" />
- </div>
- </div>
- </div>
- }
- <div>
- @Html.ActionLink("Retour à la liste", "Index")
- </div>
- @section Scripts {
- }
|