Index.cshtml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. @using CD67.FicheCollege.MVC.Models
  2. @model AnneeViewModel
  3. <title>Actions @Model.Annee_Lib</title>
  4. @{
  5. ViewBag.Title = "Les Actions Educatives " + 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 class="mask-ss">
  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("Import", new { annee_id = Model.Obj.Id })"> <span class="glyphicon glyphicon-import color1"></span> Importer depuis @Model.Obj.AnneePrecLib</a>
  14. <a class="start-trace" href="@Url.Action("Index", "ActionEduAxes")"> <span class="glyphicon glyphicon-cog color1"></span> Axes</a>
  15. <a class="start-trace" href="@Url.Action("Index", "ActionEduThematiques")"> <span class="glyphicon glyphicon-cog color1"></span> Thématiques</a>
  16. </span>
  17. </header>
  18. <table id="table-actions" class="datatable table" data-order="[[ 0, &quot;asc&quot; ]]">
  19. <thead>
  20. <tr>
  21. <th>
  22. @Html.DisplayNameFor(model => action_model.Numero)
  23. </th>
  24. <th>
  25. @Html.DisplayNameFor(model => action_model.Nom)
  26. </th>
  27. <th>
  28. Axe
  29. </th>
  30. <th>
  31. Thematique
  32. </th>
  33. <th>
  34. Nb.Collèges
  35. </th>
  36. <th>
  37. Nb.Elèves
  38. </th>
  39. <th>
  40. @Html.DisplayNameFor(model => action_model.ActionEduStatut.Nom)
  41. </th>
  42. <noscript>
  43. <th style="width:1px">
  44. </th>
  45. </noscript>
  46. </tr>
  47. </thead>
  48. <tbody>
  49. @foreach (ActionEdu item in Model.Obj.ActionsEdu.OrderBy(a => a.Numero))
  50. {
  51. <tr data-url="@Url.Action("Details", new { id = item.Id })">
  52. <td>
  53. @Html.DisplayFor(model => item.Numero)
  54. </td>
  55. <td>
  56. @Html.DisplayFor(model => item.Nom)
  57. </td>
  58. <td>
  59. @Html.DisplayFor(model => item.ActionEduThematique.ActionEduAxe.Nom)
  60. </td>
  61. <td>
  62. @Html.DisplayFor(model => item.ActionEduThematique.Nom)
  63. </td>
  64. <td>
  65. @item.ActionsEduColleges.Count().ToString()
  66. </td>
  67. <td>
  68. @Html.DisplayFor(model => item.totalEleves)
  69. </td>
  70. <td>
  71. @Html.DisplayFor(model => item.ActionEduStatut.Nom)
  72. </td>
  73. <noscript>
  74. <td>
  75. @Html.ActionLink("Voir", "Details", new { id = item.Id })
  76. </td>
  77. </noscript>
  78. </tr>
  79. }
  80. </tbody>
  81. </table>