Index.cshtml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. @Html.DisplayNameFor(model => action_model.Montant)
  34. </th>
  35. <th>
  36. Nb.Collèges
  37. </th>
  38. <th>
  39. Nb.Elèves
  40. </th>
  41. <th>
  42. @Html.DisplayNameFor(model => action_model.Neutralise)
  43. </th>
  44. </tr>
  45. </thead>
  46. <tbody>
  47. @foreach (ActionEdu item in Model.Obj.ActionsEdu.OrderBy(a => a.Ordre))
  48. {
  49. <tr data-url="@Url.Action("Details", new { id = item.Id })">
  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.ActionEduThematique.ActionEduAxe.Nom)
  61. </td>
  62. <td>
  63. @Html.DisplayFor(model => item.ActionEduThematique.Nom)
  64. </td>
  65. <td data-order="@item.Montant">
  66. @Html.DisplayFor(model => item.Montant)
  67. </td>
  68. <td>
  69. @item.ActionsEduColleges.Count().ToString()
  70. </td>
  71. <td>
  72. @Html.DisplayFor(model => item.totalEleves)
  73. </td>
  74. <td>
  75. @Html.DisplayFor(model => item.Neutralise)
  76. </td>
  77. </tr>
  78. }
  79. </tbody>
  80. </table>