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