templates/course/index.html.twig line 1

Open in your IDE?
  1. {% extends 'layout/backEndLayout.html.twig' %}
  2. {% block content %}
  3. <div class="row mt-4">
  4. <div class="col-1">
  5. <a class="btn btn-info" href="{{ path('admin_courses_new') }}">
  6. <i class="fa fa-plus"></i>
  7. </a>
  8. </div>
  9. <div class="col-11 jumbotron">
  10. <div class="m-1 box-shadow">
  11. <div class="card-header">
  12. <h4 class="my-0 font-weight-normal text-center text-justify text-uppercase">
  13. Liste des cours par classe et par module
  14. </h4>
  15. </div>
  16. <table class="table table-striped">
  17. <thead>
  18. <tr>
  19. <th style="width:5%;" class="text-center" scope="col">
  20. #
  21. </th>
  22. <th style="width:15%;" class="text-center" scope="col">
  23. Domaine
  24. </th>
  25. <th style="width:15%;" class="text-center" scope="col">
  26. Module
  27. </th>
  28. <th style="width:15%;" class="text-center" scope="col">
  29. Code
  30. </th>
  31. <th style="width:20%;" class="text-center" scope="col">
  32. Insitule
  33. </th>
  34. <th style="width:15%;" class="text-center" scope="col">
  35. Coef
  36. </th>
  37. <th style="width:20%;" class="text-center" scope="col">
  38. Action
  39. </th>
  40. </tr>
  41. </thead>
  42. <tbody>
  43. {% for room in rooms %}
  44. <tr>
  45. <td class="text-center" colspan="1" scope="row">
  46. {{ loop.index }}
  47. </th>
  48. <td class="text-center" colspan="7">
  49. <a href="{{ path('admin_classrooms_show', {id: room.id}) }}">
  50. <h3>
  51. {{ room.name }}
  52. </h3>
  53. </a>
  54. </td>
  55. </tr>
  56. {% for module in room.modules %}
  57. <tr>
  58. <td class="text-center" colspan="4" scope="row">
  59. {{ loop.index }}
  60. </th>
  61. <td class="text-center" colspan="4">
  62. <a href="{{ path('admin_modules_show', {id: module.id}) }}">
  63. <h3>
  64. {{ module.name }}
  65. </h3>
  66. </a>
  67. </td>
  68. </tr>
  69. {% for course in module.courses %}
  70. <tr>
  71. <td style="width:5%;" class="text-center" scope="row">
  72. {{ loop.index }}
  73. </th>
  74. <td style="width:15%;" class="text-center">
  75. <a href="{{ path('admin_domains_show', {id: course.domain.id}) }}">
  76. <h3>
  77. {{ course.domain.name }}
  78. </h3>
  79. </a>
  80. </td>
  81. <td style="width:15%;" class="text-center">
  82. <a href="{{ path('admin_modules_show', {id: course.module.id}) }}">
  83. <h3>
  84. {{ course.module.name }}
  85. </h3>
  86. </a>
  87. </td>
  88. <td style="width:10%;" class="text-center">
  89. <h3>
  90. {{ course.code }}
  91. </h3>
  92. </td>
  93. <td style="width:20%;" class="text-center">
  94. <h3>
  95. {{ course.wording }}
  96. </h3>
  97. </td>
  98. <td style="width:15%;" class="text-center">
  99. <h3>
  100. {{ course.coefficient }}
  101. </h3>
  102. </td>
  103. <td style="width:15%;" class="text-center">
  104. <div class="btn-group">
  105. <a class="btn btn-outline-info" href="{{ path('admin_courses_show', {id: course.id}) }}">
  106. <i class="fa fa-eye" aria-hidden="true"></i>
  107. </a>
  108. <a class="btn btn-outline-warning" href="{{ path('admin_courses_edit', {id: course.id}) }}">
  109. <i class="fa fa-pencil-square-o" aria-hidden="true"></i>
  110. </a>
  111. </div>
  112. </td>
  113. </tr>
  114. {% endfor %}
  115. {% endfor %}
  116. {% endfor %}
  117. </tbody>
  118. </table>
  119. </div>
  120. </div>
  121. </div>
  122. {% endblock %}