Index.cshtml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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 class="start-trace" href="@Url.Action("Index", "ActionEduAxes")"> <span class="glyphicon glyphicon-cog color1"></span> Axes</a>
  14. <a class="start-trace" 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. @Html.DisplayNameFor(model => action_model.Numero)
  22. </th>
  23. <th>
  24. @Html.DisplayNameFor(model => action_model.Nom)
  25. </th>
  26. <th>
  27. Axe
  28. </th>
  29. <th>
  30. Thematique
  31. </th>
  32. <th>
  33. Nb.Collèges
  34. </th>
  35. <th>
  36. Nb.Elèves
  37. </th>
  38. <th>
  39. @Html.DisplayNameFor(model => action_model.Neutralise)
  40. </th>
  41. </tr>
  42. </thead>
  43. <tbody>
  44. @foreach (ActionEdu item in Model.Obj.ActionsEdu.OrderBy(a => a.Ordre))
  45. {
  46. <tr data-url="@Url.Action("Details", new { id = item.Id })">
  47. <td>
  48. @Html.DisplayFor(model => item.Numero)
  49. </td>
  50. <td>
  51. @Html.DisplayFor(model => item.Nom)
  52. <noscript>
  53. @Html.ActionLink(" > Voir", "Details", new { id = item.Id })
  54. </noscript>
  55. </td>
  56. <td>
  57. @Html.DisplayFor(model => item.ActionEduThematique.ActionEduAxe.Nom)
  58. </td>
  59. <td>
  60. @Html.DisplayFor(model => item.ActionEduThematique.Nom)
  61. </td>
  62. <td>
  63. @item.ActionsEduColleges.Count().ToString()
  64. </td>
  65. <td>
  66. @Html.DisplayFor(model => item.totalEleves)
  67. </td>
  68. <td>
  69. @Html.DisplayFor(model => item.Neutralise)
  70. </td>
  71. </tr>
  72. }
  73. </tbody>
  74. </table>