Edit.cshtml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. @model CD67.FicheCollege.Entity.TypeCollege
  2. @{
  3. ViewBag.Title = "Modification";
  4. Layout = "~/Views/Shared/_Layout.cshtml";
  5. }
  6. <h2>Modification</h2>
  7. @using (Html.BeginForm())
  8. {
  9. @Html.AntiForgeryToken()
  10. <div class="form-horizontal">
  11. <h4>Type collège</h4>
  12. <hr />
  13. @Html.ValidationSummary(true, "", new { @class = "text-danger" })
  14. @Html.HiddenFor(model => model.Id)
  15. @Html.HiddenFor(model => model.Ordre)
  16. <div class="form-group">
  17. @Html.LabelFor(model => model.Libelle, htmlAttributes: new { @class = "control-label col-md-2" })
  18. <div class="col-md-10">
  19. @Html.EditorFor(model => model.Libelle, new { htmlAttributes = new { @class = "form-control" } })
  20. @Html.ValidationMessageFor(model => model.Libelle, "", new { @class = "text-danger" })
  21. </div>
  22. </div>
  23. <div class="form-group">
  24. <div class="col-md-offset-2 col-md-10">
  25. <input type="submit" value="Enregistrer" class="btn btn-default" />
  26. </div>
  27. </div>
  28. </div>
  29. }
  30. <div>
  31. @Html.ActionLink("Retour à la liste", "Index")
  32. </div>
  33. @section Scripts {
  34. @Scripts.Render("~/bundles/jqueryval")
  35. }