Details.cshtml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. @using CD67.FicheCollege.MVC.Models
  2. @model CollegeViewModel
  3. @{
  4. ViewBag.Title = "Details";
  5. Layout = "~/Views/Shared/_Layout.cshtml";
  6. ActionCLAS contenu = Model.Contenu as ActionCLAS;
  7. }
  8. <!-- Menu de niveau 2 -->
  9. <div>
  10. <ul id="menu-l2">
  11. <li id="li-menu-l2"><a id="a-li-menu-l2" class="btn-sm" href="@Url.Action("Details", "Colleges", new { Id = Model.College_Id })">Général</a></li>
  12. <li id="li-menu-l2"><a id="a-li-menu-l2" class="btn-sm" href="@Url.Action("Details", "Identites", new { Id = Model.College_Id })/">Identité</a></li>
  13. <li id="li-menu-l2"><a id="a-li-menu-l2-active" class="btn-sm" href="@Url.Action("Details", "ActionsCLAS", new { Id = Model.College_Id })/">Actions</a></li>
  14. </ul>
  15. </div>
  16. <h1>@Model.College_Libelle</h1>
  17. <fieldset>
  18. <legend>
  19. Actions CLAS
  20. @if (Model.Acces == ModeAcces.Lecture)
  21. {
  22. <div class="pull-right">
  23. @Html.ActionLink("Modifier", "Edit", "ActionsCLAS", new { Id = Model.College_Id }, new { @class = "btn btn-default" })
  24. </div>
  25. }
  26. </legend>
  27. <dl class="dl-horizontal">
  28. <dt>
  29. @Html.DisplayNameFor(model => contenu.Action)
  30. </dt>
  31. <dd>
  32. @Html.DisplayFor(model => contenu.Action)
  33. </dd>
  34. <dt>
  35. @Html.DisplayNameFor(model => contenu.Commentaire)
  36. </dt>
  37. <dd style="white-space: pre-line;">@Html.DisplayFor(model => contenu.Commentaire)</dd>
  38. </dl>
  39. </fieldset>