Create.cshtml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. @using CD67.FicheCollege.MVC.Models
  2. @model ActionEduThematiqueViewModel
  3. @{
  4. ViewBag.Title = "Création";
  5. Layout = "~/Views/Shared/_AdminLayout.cshtml";
  6. ActionEduThematique thematique = Model.Obj;
  7. }
  8. @using (Html.BeginForm())
  9. {
  10. @Html.AntiForgeryToken()
  11. <div class="form-horizontal">
  12. <h4>Thématique</h4>
  13. <hr />
  14. @Html.ValidationSummary(true, "", new { @class = "text-danger" })
  15. @Html.HiddenFor(model => thematique.Id)
  16. @Html.HiddenFor(model => thematique.Ordre)
  17. <div class="form-group">
  18. @Html.LabelFor(model => thematique.Nom, htmlAttributes: new { @class = "control-label col-md-2" })
  19. <div class="col-md-10">
  20. @Html.EditorFor(model => thematique.Nom, new { htmlAttributes = new { @class = "form-control" } })
  21. @Html.ValidationMessageFor(model => thematique.Nom, "", new { @class = "text-danger" })
  22. </div>
  23. </div>
  24. <div class="form-group">
  25. @Html.LabelFor(model => thematique.Neutralise, htmlAttributes: new { @class = "control-label col-md-2" })
  26. <div class="col-md-10">
  27. @Html.EditorFor(model => thematique.Neutralise, new { htmlAttributes = new { @class = "form-control" } })
  28. @Html.ValidationMessageFor(model => thematique.Neutralise, "", new { @class = "text-danger" })
  29. </div>
  30. </div>
  31. <div class="form-group">
  32. @Html.LabelFor(model => thematique.ActionEduAxeId, htmlAttributes: new { @class = "control-label col-md-2" })
  33. <div class="col-md-10">
  34. @Html.DropDownListFor(model => thematique.ActionEduAxeId, Model.Sel_Axes, htmlAttributes: new { @class = "form-control" })
  35. @Html.ValidationMessageFor(model => thematique.ActionEduAxeId, "", new { @class = "text-danger" })
  36. </div>
  37. </div>
  38. <div class="form-group btn-bar">
  39. <a href=@Url.Action("Index") class="btn btn-default">Annuler</a>
  40. <input type="submit" value="Enregistrer" class="btn btn-primary" />
  41. </div>
  42. </div>
  43. }