Edit.cshtml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. @model CD67.ModeleMVC.Entity.TypeViking
  2. @{
  3. ViewBag.Title = "Edit";
  4. Layout = "~/Views/Shared/_Layout.cshtml";
  5. }
  6. <title>Type de Vikings</title>
  7. <h1>Edition</h1>
  8. @using (Html.BeginForm())
  9. {
  10. @Html.AntiForgeryToken()
  11. <div class="form-horizontal">
  12. <h4>Type de Viking</h4>
  13. <hr />
  14. @Html.ValidationSummary(true, "", new { @class = "text-danger" })
  15. @Html.HiddenFor(model => model.Id)
  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 autofocus" } })
  20. @Html.ValidationMessageFor(model => model.Libelle, "", new { @class = "text-danger" })
  21. </div>
  22. </div>
  23. <div class="col-md-7">
  24. </div>
  25. <div class="form-group col-md-5">
  26. <div class="col-md-offset-2 col-md-10">
  27. <input type="submit" value="Enregistrer" class="btn btn-info" />
  28. <input onclick="location.href='@Url.Action("Index", "TypeViking")';return false;" value="Retour" class="btn btn-default" />
  29. </div>
  30. </div>
  31. </div>
  32. }