Edit.cshtml 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. @using CD67.FicheCollege.MVC.Models
  2. @model ActionEduViewModel
  3. @{
  4. ViewBag.Title = "Modification";
  5. Layout = "~/Views/Shared/_Layout.cshtml";
  6. ActionEdu actionEdu = Model.Obj;
  7. }
  8. <h2>Modification</h2>
  9. @using (Html.BeginForm())
  10. {
  11. @Html.AntiForgeryToken()
  12. <div class="form-horizontal">
  13. <h4>Actions</h4>
  14. <hr />
  15. @Html.ValidationSummary(true, "", new { @class = "text-danger" })
  16. @Html.HiddenFor(model => actionEdu.Id)
  17. @Html.HiddenFor(model => actionEdu.Ordre)
  18. @Html.HiddenFor(model => actionEdu.AnneeId)
  19. <div class="form-group">
  20. @Html.LabelFor(model => actionEdu.Numero, htmlAttributes: new { @class = "control-label col-md-2" })
  21. <div class="col-md-10">
  22. @Html.EditorFor(model => actionEdu.Numero, new { htmlAttributes = new { @class = "form-control" } })
  23. @Html.ValidationMessageFor(model => actionEdu.Numero, "", new { @class = "text-danger" })
  24. </div>
  25. </div>
  26. <div class="form-group">
  27. @Html.LabelFor(model => actionEdu.Nom, htmlAttributes: new { @class = "control-label col-md-2" })
  28. <div class="col-md-10">
  29. @Html.EditorFor(model => actionEdu.Nom, new { htmlAttributes = new { @class = "form-control" } })
  30. @Html.ValidationMessageFor(model => actionEdu.Nom, "", new { @class = "text-danger" })
  31. </div>
  32. </div>
  33. <div class="form-group">
  34. @Html.LabelFor(model => actionEdu.Description, htmlAttributes: new { @class = "control-label col-md-2" })
  35. <div class="col-md-10">
  36. @Html.EditorFor(model => actionEdu.Description, new { htmlAttributes = new { @class = "form-control" } })
  37. @Html.ValidationMessageFor(model => actionEdu.Description, "", new { @class = "text-danger" })
  38. </div>
  39. </div>
  40. <div class="form-group">
  41. @Html.LabelFor(model => actionEdu.Neutralise, htmlAttributes: new { @class = "control-label col-md-2" })
  42. <div class="col-md-10">
  43. @Html.EditorFor(model => actionEdu.Neutralise, new { htmlAttributes = new { @class = "form-control" } })
  44. @Html.ValidationMessageFor(model => actionEdu.Neutralise, "", new { @class = "text-danger" })
  45. </div>
  46. </div>
  47. <div class="form-group">
  48. @Html.LabelFor(model => actionEdu.ActionEduThematiqueId, htmlAttributes: new { @class = "control-label col-md-2" })
  49. <div class="col-md-10">
  50. @Html.DropDownListFor(model => actionEdu.ActionEduThematiqueId, Model.Sel_Thematique, htmlAttributes: new { @class = "form-control" })
  51. @Html.ValidationMessageFor(model => actionEdu.ActionEduThematiqueId, "", new { @class = "text-danger" })
  52. </div>
  53. </div>
  54. <div class="form-group">
  55. <div class="col-md-offset-2 col-md-10">
  56. <input type="submit" value="Enregistrer" class="btn btn-default" />
  57. </div>
  58. </div>
  59. </div>
  60. }
  61. <div>
  62. @Html.ActionLink("Retour à la liste", "Index")
  63. </div>
  64. @section Scripts {
  65. }