| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- @using CD67.FicheCollege.MVC.Models
- @model ActionEduActeurViewModel
- @{
- ViewBag.Title = "Les Actions Educatives " + Model.Annee_Lib;
- Layout = "~/Views/Shared/_Layout.cshtml";
- ActionEduActeur actionEduActeur = Model.Obj;
- }
- <header>
- @if (Model.Acces == ModeAcces.Modification)
- {
- <h2>@actionEduActeur.ActionEdu.Nom</h2>
- }
- else
- {
- <h2>Nouvel Acteur</h2>
- }
- </header>
- @using (Html.BeginForm())
- {
- @Html.AntiForgeryToken()
-
- <div class="form-horizontal">
- <h4>Actions</h4>
- <hr />
- @Html.ValidationSummary(true, "", new { @class = "text-danger" })
- @Html.HiddenFor(model => actionEduActeur.Id)
- @Html.HiddenFor(model => actionEduActeur.ActionEduId)
-
- <div class="form-group">
- @Html.LabelFor(model => actionEduActeur.Nom, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-10">
- @Html.EditorFor(model => actionEduActeur.Nom, new { htmlAttributes = new { @class = "form-control" } })
- @Html.ValidationMessageFor(model => actionEduActeur.Nom, "", new { @class = "text-danger" })
- </div>
- </div>
- <div class="form-group">
- @Html.LabelFor(model => actionEduActeur.RoleId, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-10">
- @Html.DropDownListFor(model => actionEduActeur.RoleId, Model.Sel_Role, htmlAttributes: new { @class = "form-control" })
- @Html.ValidationMessageFor(model => actionEduActeur.RoleId, "", new { @class = "text-danger" })
- </div>
- </div>
- <div class="form-group">
- @Html.LabelFor(model => actionEduActeur.Commentaire, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-10">
- @Html.EditorFor(model => actionEduActeur.Commentaire, new { htmlAttributes = new { @class = "form-control" } })
- @Html.ValidationMessageFor(model => actionEduActeur.Commentaire, "", new { @class = "text-danger" })
- </div>
- </div>
- <div class="form-group btn-bar">
- <a href=@Url.Action("Details", "ActionsEdu", new { id = actionEduActeur.ActionEduId }) class="btn btn-default">Annuler</a>
- <input type="submit" value="Enregistrer" class="btn btn-primary" />
- </div>
- </div>
- }
|