Details.cshtml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. @using CD67.FicheCollege.MVC.Models
  2. @model ActionEduCollegeViewModel
  3. @{
  4. ViewBag.Title = "Details";
  5. Layout = "~/Views/Shared/_Layout.cshtml";
  6. ActionEduCollege actionEduCollege = Model.Obj;
  7. }
  8. <h1>Les Actions</h1>
  9. <div>
  10. @Html.ActionLink("Retour", "Details", "ActionsEdu", new { id = actionEduCollege.ActionEdu.Id }, new { @class = "btn btn-default" })
  11. </div>
  12. <h2>@actionEduCollege.ActionEdu.Nom, collège @actionEduCollege.College.Libelle</h2>
  13. <fieldset>
  14. <legend>
  15. Informations
  16. @if (Model.Acces == ModeAcces.Lecture)
  17. {
  18. <span class="pull-right">
  19. @Html.ActionLink("Supprimer", "Delete", "ActionsEduCollege", new { Id = actionEduCollege.Id }, new { @class = "btn btn-danger" })
  20. @Html.ActionLink("Modifier", "Edit", "ActionsEduCollege", new { Id = actionEduCollege.Id }, new { @class = "btn btn-default" })
  21. </span>
  22. }
  23. </legend>
  24. <dl class="dl-horizontal">
  25. <dt>@Html.DisplayNameFor(model => actionEduCollege.NbEleves)</dt>
  26. <dd>@Html.DisplayFor(model => actionEduCollege.NbEleves)</dd>
  27. <dt>@Html.DisplayNameFor(model => actionEduCollege.Montant)</dt>
  28. <dd>@Html.DisplayFor(model => actionEduCollege.Montant)</dd>
  29. <dt>@Html.DisplayNameFor(model => actionEduCollege.CommentaireInterne)</dt>
  30. <dd>@Html.DisplayFor(model => actionEduCollege.CommentaireInterne)</dd>
  31. <dt>@Html.DisplayNameFor(model => actionEduCollege.CommentairePublic)</dt>
  32. <dd>@Html.DisplayFor(model => actionEduCollege.CommentairePublic)</dd>
  33. </dl>
  34. </fieldset>