Details.cshtml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. @using CD67.FicheCollege.MVC.Models
  2. @model ActionEduViewModel
  3. @{
  4. ViewBag.Title = "Details";
  5. Layout = "~/Views/Shared/_Layout.cshtml";
  6. ActionEdu actionEdu = Model.Obj;
  7. }
  8. <h1>Les Actions</h1>
  9. <div>
  10. @Html.ActionLink("Retour à la liste", "Index")
  11. </div>
  12. <h2>@actionEdu.Nom</h2>
  13. <fieldset>
  14. <legend>
  15. Données de base
  16. @if (Model.Acces == ModeAcces.Lecture)
  17. {
  18. <span class="pull-right">
  19. @Html.ActionLink("Supprimer", "Delete", "ActionsEdu", new { Id = actionEdu.Id }, new { @class = "btn btn-danger" })
  20. @Html.ActionLink("Modifier", "Edit", "ActionsEdu", new { Id = actionEdu.Id }, new { @class = "btn btn-default" })
  21. </span>
  22. }
  23. </legend>
  24. <dl class="dl-horizontal">
  25. <dt>@Html.DisplayNameFor(model => actionEdu.ActionEduThematique.ActionEduAxe.Nom)</dt>
  26. <dd>@Html.DisplayFor(model => actionEdu.ActionEduThematique.ActionEduAxe.Nom)</dd>
  27. <dt>@Html.DisplayNameFor(model => actionEdu.ActionEduThematique.Nom)</dt>
  28. <dd>@Html.DisplayFor(model => actionEdu.ActionEduThematique.Nom)</dd>
  29. <dt>@Html.DisplayNameFor(model => actionEdu.Numero)</dt>
  30. <dd>@Html.DisplayFor(model => actionEdu.Numero)</dd>
  31. <dt>@Html.DisplayNameFor(model => actionEdu.Nom)</dt>
  32. <dd>@Html.DisplayFor(model => actionEdu.Nom)</dd>
  33. <dt>@Html.DisplayNameFor(model => actionEdu.Description)</dt>
  34. <dd>@Html.DisplayFor(model => actionEdu.Description)</dd>
  35. <dt>@Html.DisplayNameFor(model => actionEdu.Neutralise)</dt>
  36. <dd>@Html.DisplayFor(model => actionEdu.Neutralise)</dd>
  37. </dl>
  38. </fieldset>
  39. @if (Model.Acces == ModeAcces.Lecture)
  40. {
  41. <legend>
  42. Collège(s) concerné(s)
  43. <span class="pull-right">
  44. @Html.ActionLink("Ajouter", "Create", "ActionsEduCollege", new { actionEdu_id = actionEdu.Id }, new { @class = "btn btn-default" })
  45. </span>
  46. </legend>
  47. foreach (ActionEduCollege item in Model.Obj.ActionsEduColleges)
  48. {
  49. <div>
  50. <span>@item.College.Libelle</span> <span> @Html.ActionLink("Voir", "Details", "ActionsEduCollege", new { Id = item.Id }, new { @class = "btn btn-default" })</span>
  51. </div>
  52. }
  53. }