Index.cshtml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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">
  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. </tr>
  43. </thead>
  44. <tbody>
  45. @foreach (ActionEdu item in Model.Obj.ActionsEdu.OrderBy(a => a.Ordre))
  46. {
  47. <tr data-url="@Url.Action("Details", new { id = item.Id })">
  48. <td>
  49. @Html.DisplayFor(model => item.Numero)
  50. </td>
  51. <td>
  52. @Html.DisplayFor(model => item.Nom)
  53. <noscript>
  54. @Html.ActionLink(" > Voir", "Details", new { id = item.Id })
  55. </noscript>
  56. </td>
  57. <td>
  58. @Html.DisplayFor(model => item.ActionEduThematique.ActionEduAxe.Nom)
  59. </td>
  60. <td>
  61. @Html.DisplayFor(model => item.ActionEduThematique.Nom)
  62. </td>
  63. <td>
  64. @item.ActionsEduColleges.Count().ToString()
  65. </td>
  66. <td>
  67. @Html.DisplayFor(model => item.totalEleves)
  68. </td>
  69. <td>
  70. @Html.DisplayFor(model => item.ActionEduStatut.Nom)
  71. </td>
  72. </tr>
  73. }
  74. </tbody>
  75. </table>