Details.cshtml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. @using CD67.FicheCollege.MVC.Models
  2. @model ActionEduActeurViewModel
  3. @{
  4. ViewBag.Title = "Details";
  5. Layout = "~/Views/Shared/_Layout.cshtml";
  6. ActionEduActeur actionEduActeur = Model.Obj;
  7. }
  8. <header>
  9. <h2>Acteur '@actionEduActeur.Nom'</h2>
  10. </header>
  11. <fieldset>
  12. <legend>
  13. Informations
  14. @if (Model.Acces == ModeAcces.Lecture)
  15. {
  16. <span class="pull-right">
  17. @Html.ActionLink("Supprimer", "Delete", "ActionsEduActeurs", new { Id = actionEduActeur.Id }, new { @class = "btn btn-danger" })
  18. @Html.ActionLink("Modifier", "Edit", "ActionsEduActeurs", new { Id = actionEduActeur.Id }, new { @class = "btn btn-default" })
  19. </span>
  20. }
  21. </legend>
  22. <dl class="dl-horizontal">
  23. <dt>@Html.DisplayNameFor(model => actionEduActeur.ActionEduActeurRole.Libelle)</dt>
  24. <dd>@Html.DisplayFor(model => actionEduActeur.ActionEduActeurRole.Libelle)</dd>
  25. <dt>@Html.DisplayNameFor(model => actionEduActeur.Commentaire)</dt>
  26. <dd>@Html.DisplayFor(model => actionEduActeur.Commentaire)</dd>
  27. </dl>
  28. </fieldset>
  29. <a href="@Url.Action("Details", "ActionsEdu", new { id = actionEduActeur.ActionEdu.Id })">Retour à l'index</a>