Edit.cshtml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. @using CD67.FicheCollege.MVC.Models
  2. @model ActionEduThematiqueViewModel
  3. @{
  4. ViewBag.Title = "Modification";
  5. Layout = "~/Views/Shared/_AdminLayout.cshtml";
  6. ActionEduThematique thematique = Model.Obj;
  7. }
  8. <h2>Modification</h2>
  9. @using (Html.BeginForm())
  10. {
  11. @Html.AntiForgeryToken()
  12. <div class="form-horizontal">
  13. <h4>Type collège</h4>
  14. <hr />
  15. @Html.ValidationSummary(true, "", new { @class = "text-danger" })
  16. @Html.HiddenFor(model => thematique.Id)
  17. @Html.HiddenFor(model => thematique.Ordre)
  18. <div class="form-group">
  19. @Html.LabelFor(model => thematique.Nom, htmlAttributes: new { @class = "control-label col-md-2" })
  20. <div class="col-md-10">
  21. @Html.EditorFor(model => thematique.Nom, new { htmlAttributes = new { @class = "form-control" } })
  22. @Html.ValidationMessageFor(model => thematique.Nom, "", new { @class = "text-danger" })
  23. </div>
  24. </div>
  25. <div class="form-group">
  26. @Html.LabelFor(model => thematique.Neutralise, htmlAttributes: new { @class = "control-label col-md-2" })
  27. <div class="col-md-10">
  28. @Html.EditorFor(model => thematique.Neutralise, new { htmlAttributes = new { @class = "form-control" } })
  29. @Html.ValidationMessageFor(model => thematique.Neutralise, "", new { @class = "text-danger" })
  30. </div>
  31. </div>
  32. <div class="form-group">
  33. @Html.LabelFor(model => thematique.ActionEduAxeId, htmlAttributes: new { @class = "control-label col-md-2" })
  34. <div class="col-md-10">
  35. @Html.DropDownListFor(model => thematique.ActionEduAxeId, Model.Sel_Axes, htmlAttributes: new { @class = "form-control" })
  36. @Html.ValidationMessageFor(model => thematique.ActionEduAxeId, "", new { @class = "text-danger" })
  37. </div>
  38. </div>
  39. <div class="form-group">
  40. <div class="col-md-offset-2 col-md-10">
  41. <input type="submit" value="Enregistrer" class="btn btn-default" />
  42. </div>
  43. </div>
  44. </div>
  45. }
  46. <div>
  47. @Html.ActionLink("Retour à la liste", "Index")
  48. </div>
  49. @section Scripts {
  50. }