templates/classroom/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. {% if is_granted('ROLE_ADMIN') %}
  6. <a class="btn btn-info" href="{{ path('admin_classrooms_new') }}">
  7. <i class="fa fa-plus"></i>
  8. </a>
  9. {% endif %}
  10. </div>
  11. <div class="col-11 jumbotron">
  12. <div class="card-header d-inline-flex">
  13. <h4 class="my-0 font-weight-normal text-center text-uppercase">
  14. &emsp; &emsp; &emsp; &emsp; &emsp; &emsp; &emsp; &emsp; &emsp; &emsp; &emsp; &emsp; Liste des salles de classe
  15. </h4>
  16. </div>
  17. <table width="120%" class="table table-striped table-sm">
  18. <thead>
  19. <tr>
  20. <th style="width:18%;" class="text-center" scope="col">
  21. Nom
  22. </th>
  23. <th style="width:15%;" class="text-center" scope="col">
  24. Professeur titulaire
  25. </th>
  26. <th style="width:75%;" class="text-center" scope="col">
  27. Action
  28. </th>
  29. </tr>
  30. </thead>
  31. <tbody>
  32. {% for room in classrooms %}
  33. <tr>
  34. <td>
  35. <a href="{{ path('admin_classrooms_show', {id: room.id }) }}">
  36. {{ room.name }}
  37. </a>
  38. </td>
  39. <td>
  40. {% if room.id in mainTeachers|keys %}
  41. {{ mainTeachers[room.id].fullName}}
  42. {% endif %}
  43. </td>
  44. <td>
  45. <div class="btn-group">
  46. {% if is_granted('ROLE_ADMIN') %}
  47. <a class="btn btn-outline-warning " href="{{ path('admin_classrooms_edit', {id: room.id}) }}">
  48. <i class="fa fa-edit">
  49. </i>
  50. </a>
  51. <a class="btn btn-outline-dark " target="_blank" href="{{ path('admin_classroom_insolvent', {id: room.id}) }}">
  52. <i class="fa fa-users" aria-hidden="true">
  53. </i>
  54. </a>
  55. <a class="btn btn-file" target="_blank" href="{{ path('admin_payment_plan_print', {id: room.id}) }}">
  56. <i class="fa fa-money" aria-hidden="true">
  57. &nbsp;Echeancier
  58. </i>
  59. </a>
  60. {% endif %}
  61. <a class="btn btn-file" target="_blank" href="{{ path('admin_classrooms_fichesimple', {id: room.id}) }}">
  62. <i class="fa fa-file-pdf-o" aria-hidden="true">
  63. &nbsp;Repport Notes
  64. </i>
  65. </a>
  66. <a class="btn btn-outline-info " target="_blank" href="{{ path('admin_classrooms_presentation', {id: room.id}) }}">
  67. <i class="fa fa-users" aria-hidden="true">
  68. </i>
  69. </a>
  70. <a class="btn btn-file" target="_blank" href="{{ path('admin_classrooms_recapitulatif', {room: room.id, seq : seq}) }}">
  71. <i class="fa fa-file" aria-hidden="true">
  72. &nbsp;Recap. vierge
  73. </i>
  74. </a>
  75. {#<a class="btn btn-file" target="_blank" href="{{ path('admin_classrooms_blanc_ann', {room: room.id}) }}">
  76. <i class="fa fa-th-list" aria-hidden="true">
  77. &nbsp;Fiche annu.
  78. </i>
  79. </a>#}
  80. <a class="btn btn-file" target="_blank" href="{{ path('admin_classrooms_disciplinary_record', {id: room.id}) }}">
  81. <i class="fa fa-th-list" aria-hidden="true">
  82. &nbsp;Fiche discipl.
  83. </i>
  84. </a>
  85. </div>
  86. </td>
  87. </tr>
  88. {% endfor %}
  89. </tbody>
  90. </table>
  91. </div>
  92. </div>
  93. {% endblock %}
  94. {% block footer %}
  95. {{ parent() }}
  96. {% endblock %}