Index.cshtml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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.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.ActionEduThematique.ActionEduAxe.Ordre).ThenBy(a => a.ActionEduThematique.Ordre).ThenBy(a => a.Ordre))
  48. {
  49. <tr data-url="@Url.Action("Details", new { id = item.Id })">
  50. <td>
  51. @Html.DisplayFor(model => item.ActionEduThematique.ActionEduAxe.Nom)
  52. </td>
  53. <td>
  54. @Html.DisplayFor(model => item.ActionEduThematique.Nom)
  55. </td>
  56. <td>
  57. @Html.DisplayFor(model => item.Numero)
  58. </td>
  59. <td>
  60. @Html.DisplayFor(model => item.Nom)
  61. <noscript>
  62. @Html.ActionLink(" > Voir", "Details", new { id = item.Id })
  63. </noscript>
  64. </td>
  65. <td>
  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>