| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- @using CD67.FicheCollege.MVC.Models
- @model ActionEduThematiqueViewModel
- @{
- ViewBag.Title = "Administration - Les Thématiques";
- Layout = "~/Views/Shared/_AdminLayout.cshtml";
- ActionEduThematique thematique = Model.Obj;
- }
- @if (Model.Acces == ModeAcces.Modification)
- {
- <h2>@thematique.Nom</h2>
- }
- else
- {
- <h2>Nouvelle Thématique</h2>
- }
- @using (Html.BeginForm())
- {
- @Html.AntiForgeryToken()
-
- <div class="form-horizontal">
- @Html.ValidationSummary(true, "", new { @class = "text-danger" })
- @Html.HiddenFor(model => thematique.Id)
- @Html.HiddenFor(model => thematique.Ordre)
- <div class="form-group">
- @Html.LabelFor(model => thematique.Nom, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-10">
- @Html.EditorFor(model => thematique.Nom, new { htmlAttributes = new { @class = "form-control" } })
- @Html.ValidationMessageFor(model => thematique.Nom, "", new { @class = "text-danger" })
- </div>
- </div>
- <div class="form-group">
- @Html.LabelFor(model => thematique.Neutralise, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-10">
- @Html.EditorFor(model => thematique.Neutralise, new { htmlAttributes = new { @class = "form-control" } })
- @Html.ValidationMessageFor(model => thematique.Neutralise, "", new { @class = "text-danger" })
- </div>
- </div>
- <div class="form-group">
- @Html.LabelFor(model => thematique.ActionEduAxeId, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-10">
- @Html.DropDownListFor(model => thematique.ActionEduAxeId, Model.Sel_Axes, htmlAttributes: new { @class = "form-control" })
- @Html.ValidationMessageFor(model => thematique.ActionEduAxeId, "", 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>
- }
|