Create.cshtml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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">
  39. <div class="col-md-offset-2 col-md-10">
  40. <input type="submit" value="Créer" class="btn btn-default" />
  41. </div>
  42. </div>
  43. </div>
  44. }
  45. <div>
  46. @Html.ActionLink("Retour à la liste", "Index")
  47. </div>
  48. @section Scripts {
  49. }