| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- @using CD67.FicheCollege.MVC.Models
- @model TypeCollegeViewModel
- @{
- ViewBag.Title = "Administration - Les Types de Collèges";
- Layout = "~/Views/Shared/_AdminLayout.cshtml";
- TypeCollege typeCollege = Model.Obj;
- }
- @if (Model.Acces == ModeAcces.Modification)
- {
- <h2>@typeCollege.Libelle</h2>
- }
- else
- {
- <h2>Nouveau Type de Collège</h2>
- }
- @using (Html.BeginForm())
- {
- @Html.AntiForgeryToken()
-
- <div class="form-horizontal">
- @Html.ValidationSummary(true, "", new { @class = "text-danger" })
- @Html.HiddenFor(model => typeCollege.Id)
- @Html.HiddenFor(model => typeCollege.Ordre)
- <div class="form-group">
- @Html.LabelFor(model => typeCollege.Libelle, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-10">
- @Html.EditorFor(model => typeCollege.Libelle, new { htmlAttributes = new { @class = "form-control" } })
- @Html.ValidationMessageFor(model => typeCollege.Libelle, "", 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>
- }
|