Details.cshtml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  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. <header>
  9. <h2>Action Educative '@actionEduCollege.ActionEdu.Nom' à @actionEduCollege.College.Libelle</h2>
  10. </header>
  11. <fieldset>
  12. <legend>
  13. Informations
  14. @if (Model.Acces == ModeAcces.Lecture)
  15. {
  16. <span class="pull-right">
  17. @Html.ActionLink("Modifier", "Edit", "ActionsEduCollege", new { Id = actionEduCollege.Id }, new { @class = "btn btn-primary" })
  18. @Html.ActionLink("Supprimer", "Delete", "ActionsEduCollege", new { Id = actionEduCollege.Id }, new { @class = "btn btn-default" })
  19. </span>
  20. }
  21. </legend>
  22. <dl class="dl-horizontal">
  23. <dt>@Html.DisplayNameFor(model => actionEduCollege.NbEleves)</dt>
  24. <dd>@Html.DisplayFor(model => actionEduCollege.NbEleves)</dd>
  25. <dt>@Html.DisplayNameFor(model => actionEduCollege.Commentaire)</dt>
  26. <dd>@Html.DisplayFor(model => actionEduCollege.Commentaire)</dd>
  27. </dl>
  28. </fieldset>
  29. <a href="@Url.Action("Details", "ActionsEdu", new { id = actionEduCollege.ActionEdu.Id })">Retour à l'index</a>