Delete.cshtml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. @model CD67.ModeleMVC.Entity.Viking
  2. @{
  3. ViewBag.Title = "Delete";
  4. Layout = "~/Views/Shared/_Layout.cshtml";
  5. }
  6. <title>Vikings</title>
  7. <h1>Suppression</h1>
  8. <h3>Voulez-vous vraiment supprimer cet enregistrement?</h3>
  9. <div>
  10. <h4>Viking</h4>
  11. <hr />
  12. <dl class="dl-horizontal">
  13. <dt>
  14. @Html.DisplayNameFor(model => model.Nom)
  15. </dt>
  16. <dd>
  17. @Html.DisplayFor(model => model.Nom)
  18. </dd>
  19. <dt>
  20. @Html.DisplayNameFor(model => model.TypeVikingId)
  21. </dt>
  22. <dd>
  23. @Html.DisplayFor(model => model.TypeVikingId)
  24. </dd>
  25. </dl>
  26. @using (Html.BeginForm())
  27. {
  28. @Html.AntiForgeryToken()
  29. <div class="col-md-7">
  30. </div>
  31. <div class="form-group col-md-5">
  32. <input type="submit" value="Supprimer" class="btn btn-danger" />
  33. <input onclick="location.href='@Url.Action("Index", "Viking")';return false;" value="Retour" class="btn btn-default" />
  34. </div>
  35. }
  36. </div>