| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- @using CD67.FicheCollege.MVC.Models
- @model ActionEduActeurViewModel
- @{
- ViewBag.Title = "Création";
- Layout = "~/Views/Shared/_Layout.cshtml";
- ActionEduActeur actionEduActeur = Model.Obj;
- }
- <header>
- <h2>Action '@actionEduActeur.ActionEdu.Nom': Ajouter un acteur</h2>
- </header>
- @using (Html.BeginForm())
- {
- @Html.AntiForgeryToken()
-
- <div class="form-horizontal">
- @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">
- <div class="col-md-offset-2 col-md-10">
- <input type="submit" value="Créer" class="btn btn-default" />
- </div>
- </div>
- </div>
- }
|