templates/rapport/page/table.html.twig line 1

Open in your IDE?
  1. <table id="datatables_etudiant" class="display" style="width:100%">
  2.     <thead>
  3.         <tr>
  4.             <th>ID Ins</th>
  5.             <th>Code Ins</th>
  6.             <th>Code ADM</th>
  7.             <th>Nom</th>
  8.             <th>Prenom</th>
  9.             <th>Niveau</th>
  10.             {% set x=1 %}
  11.             {% for key, cycle in cycles %}
  12.                 <th title="{{cycle.designation[0]}}">Stage {{key+1}}
  13.                 {% set x=x+1 %}
  14.                 </th>
  15.             {% endfor %}
  16.         </tr>
  17.     </thead>
  18.     <tbody>
  19.         {% for data in datas %}
  20.             <tr>
  21.                 <td>{{data.inscription.id}}</td>
  22.                 <td>{{data.inscription.ins_code}} </td>
  23.                 <td>{{data.inscription.adm_code}} </td>
  24.                 <td>{{data.inscription.nom}} </td>
  25.                 <td>{{data.inscription.prenom}} </td>
  26.                 <td>{{data.inscription.niveau}} </td>
  27.                 {% for stage in data.stages %}
  28.                     <td>
  29.                         
  30.                         {% if stage.fmaglobal is not null or stage.fpaglobal is not null or stage.fdaglobal is not null %}
  31.                             {% set rapport = "" %}
  32.                             {% set note = false %}
  33.                             {% if stage.fmaglobal is not null %}
  34.                                 {% set rapport = stage.fmaglobal.id %}
  35.                                 {% set note = stage.fmaglobal.note %}
  36.                             {% elseif stage.fpaglobal is not null %}
  37.                                 {% set rapport = stage.fpaglobal.id %}
  38.                                 {% set note = stage.fpaglobal.note %}
  39.                             {% elseif stage.fdaglobal is not null %}
  40.                                 {% set rapport = stage.fdaglobal.id %}
  41.                                 {% set note = stage.fdaglobal.note %}
  42.                             {% endif %}
  43.                                 <a href="{{path('rapport_stageDetails', {rapport: rapport})}}" target="_blank" >
  44.                                     Global
  45.                                     {% if note %}  
  46.                                         (Note: {{note}})
  47.                                     {% endif %} 
  48.                                 </a> 
  49.                         {% else %} 
  50.                             {% if stage.clinique is not null or stage.simulation is not null %}
  51.                                     {% if stage.clinique is null %}
  52.                                         {% if stage.hopital is null %}
  53.                                         - 
  54.                                         {% else %}
  55.                                             <a href="{{path('rapport_stageDetails', {rapport: stage.hopital.id})}}" target="_blank" >
  56.                                                 Hopital
  57.                                                 {% if stage.hopital.note %}  
  58.                                                     (Note: {{stage.hopital.note}})
  59.                                                 {% endif %}  
  60.                                             </a>
  61.                                         {% endif %}
  62.                                     {% else %}
  63.                                         <a href="{{path('rapport_stageDetails', {rapport: stage.clinique.id})}}" target="_blank" >
  64.                                             Clinique
  65.                                             {% if stage.clinique.note %}  
  66.                                                 (Note: {{stage.clinique.note}})
  67.                                             {% endif %}  
  68.                                         </a>
  69.                                     {% endif %}
  70.                                 | 
  71.                                 {% if stage.simulation is null %}
  72.                                     - 
  73.                                 {% else %}
  74.                                     <a href="{{path('rapport_stageDetails', {rapport: stage.simulation.id})}}" target="_blank" >
  75.                                         Simulation
  76.                                         {% if stage.simulation.note %}  
  77.                                             (Note: {{stage.simulation.note}})
  78.                                         {% endif %} 
  79.                                     </a>
  80.                                 {% endif %}
  81.                             
  82.                             {% elseif stage.staff is not null or stage.hopital is not null %}
  83.                                 {% if stage.staff is null %}
  84.                                     - 
  85.                                     {% else %}
  86.                                     <a href="{{path('rapport_stageDetails', {rapport: stage.staff.id})}}" target="_blank" >
  87.                                         Staff
  88.                                         {% if stage.staff.note %}  
  89.                                             (Note: {{stage.staff.note}})
  90.                                         {% endif %}  
  91.                                     </a>
  92.                                 {% endif %}
  93.                                 | 
  94.                                 {% if stage.hopital is null %}
  95.                                     - 
  96.                                 {% else %}
  97.                                     <a href="{{path('rapport_stageDetails', {rapport: stage.hopital.id})}}" target="_blank" >
  98.                                         Hopital
  99.                                         {% if stage.hopital.note %}  
  100.                                             (Note: {{stage.hopital.note}})
  101.                                         {% endif %} 
  102.                                     </a>
  103.                                 {% endif %}  
  104.                             
  105.                                 
  106.                             {% elseif stage.pharmacy is not null%}
  107.                                 <a href="{{path('rapport_stageDetails', {rapport: stage.pharmacy.id})}}" target="_blank" >
  108.                                     Pharmacy
  109.                                     {% if stage.pharmacy.note %}  
  110.                                         (Note: {{stage.pharmacy.note}})
  111.                                     {% endif %}  
  112.                                 </a>
  113.                             {% elseif stage.dentaire is not null %}
  114.                                 
  115.                                 {% if stage.dentaire is null %}
  116.                                     - 
  117.                                     {% else %}
  118.                                     
  119.                                     <a href="{{path('rapport_stageDetails', {rapport: stage.dentaire.id})}}" target="_blank" >
  120.                                         Dentaire
  121.                                         {% if stage.dentaire.note %}  
  122.                                             (Note: {{stage.dentaire.note}})
  123.                                         {% endif %}  
  124.                                     </a>
  125.                                 {% endif %}
  126.                                 
  127.                             {% endif %}
  128.                      {% endif %} 
  129.                     </td>
  130.                 {% endfor %}
  131.             </tr>
  132.         {% endfor %}
  133.     </tbody>
  134.     {# <tfoot>
  135.         <tr>
  136.             <th>Etudiant Infos</th>
  137.             {% for cycle in cycles %}
  138.                 <th>{{cycle.cycle}}</th>
  139.             {% endfor %}
  140.         </tr>
  141.     </tfoot> #}
  142. </table>