| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- @using CD67.FicheCollege.MVC.Models
- @model RestaurationTypeRepaViewModel
- @{
- ViewBag.Title = "Création";
- Layout = "~/Views/Shared/_AdminLayout.cshtml";
- RestaurationTypeRepa repas = Model.Obj;
- }
- @using (Html.BeginForm())
- {
- @Html.AntiForgeryToken()
-
- <div class="form-horizontal">
- <h4>Types de restauration</h4>
- <hr />
- @Html.ValidationSummary(true, "", new { @class = "text-danger" })
- @Html.HiddenFor(model => repas.Id)
- @Html.HiddenFor(model => repas.Ordre)
- <div class="form-group">
- @Html.LabelFor(model => repas.Libelle, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-10">
- @Html.EditorFor(model => repas.Libelle, new { htmlAttributes = new { @class = "form-control" } })
- @Html.ValidationMessageFor(model => repas.Libelle, "", new { @class = "text-danger" })
- </div>
- </div>
- <div class="form-group">
- @Html.LabelFor(model => repas.Valid, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-10">
- @Html.EditorFor(model => repas.Valid, new { htmlAttributes = new { @class = "form-control" } })
- @Html.ValidationMessageFor(model => repas.Valid, "", new { @class = "text-danger" })
- </div>
- </div>
- <div class="form-group">
- <div class="col-md-offset-2 col-md-10">
- <input type="submit" value="Créer" class="btn btn-default" />
- </div>
- </div>
- </div>
- }
- <div>
- @Html.ActionLink("Retour à la liste", "Index")
- </div>
- @section Scripts {
- }
|