Index.cshtml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. @using CD67.FicheCollege.MVC.Models
  2. @model AnneeViewModel
  3. <title>Actions @Model.Annee_Lib</title>
  4. @{
  5. ViewBag.Title = "Actions " + @Model.Annee_Lib;
  6. Layout = "~/Views/Shared/_Layout.cshtml";
  7. ActionEdu action_model = new ActionEdu();
  8. }
  9. <header>
  10. <h2>Les Actions</h2>
  11. <span>
  12. <a href="@Url.Action("Create", new { annee_id = Model.Obj.Id })"> <span class="glyphicon glyphicon-plus-sign color1"></span> Nouvelle Action</a>
  13. <a href="@Url.Action("Index", "ActionEduAxes")"> <span class="glyphicon glyphicon-cog color1"></span> Axes</a>
  14. <a href="@Url.Action("Index", "ActionEduThematiques")"> <span class="glyphicon glyphicon-cog color1"></span> Thématiques</a>
  15. </span>
  16. </header>
  17. <table id="table-actions" class="datatable table">
  18. <thead>
  19. <tr>
  20. <th>
  21. Axe
  22. </th>
  23. <th>
  24. Thematique
  25. </th>
  26. <th>
  27. @Html.DisplayNameFor(model => action_model.Numero)
  28. </th>
  29. <th>
  30. @Html.DisplayNameFor(model => action_model.Nom)
  31. </th>
  32. <th>
  33. @Html.DisplayNameFor(model => action_model.Neutralise)
  34. </th>
  35. <th>
  36. Collèges concernés
  37. </th>
  38. </tr>
  39. </thead>
  40. <tbody>
  41. @foreach (ActionEdu item in Model.Obj.ActionsEdu.OrderBy(a => a.ActionEduThematique.ActionEduAxe.Ordre).ThenBy(a => a.ActionEduThematique.Ordre).ThenBy(a => a.Ordre))
  42. {
  43. <tr>
  44. <td>
  45. @Html.DisplayFor(model => item.ActionEduThematique.ActionEduAxe.Nom)
  46. </td>
  47. <td>
  48. @Html.DisplayFor(model => item.ActionEduThematique.Nom)
  49. </td>
  50. <td>
  51. @Html.DisplayFor(model => item.Numero)
  52. </td>
  53. <td>
  54. @Html.DisplayFor(model => item.Nom)
  55. <noscript>
  56. @Html.ActionLink(" > Voir", "Details", new { id = item.Id })
  57. </noscript>
  58. </td>
  59. <td>
  60. @Html.DisplayFor(model => item.Neutralise)
  61. </td>
  62. <td>
  63. @item.ActionsEduColleges.Count().ToString()
  64. </td>
  65. </tr>
  66. }
  67. </tbody>
  68. </table>