Create.cshtml 1.5 KB

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