templates/tri.html.twig line 1

Open in your IDE?
  1. {% extends 'baseVisa.html.twig' %}
  2. {% block title %}QEBOK | {{ projet.nomDuProjet }}{% endblock %}
  3. {% block body %}
  4.     
  5.     
  6. {#    {% if app.user and projet.dateFinPaiement < date() %}
  7.         <div class="alert alert-info">
  8.             Le projet est en mode démo.
  9.         </div>
  10.     {% endif %}
  11.     {% if app.user and projet.dateFinPaiement <= dateDans31Jours and projet.dateFinPaiement %}
  12.         <div class="alert alert-info">
  13.             Le projet passera en mode démo dans {{ diff.days }} jours.
  14.         </div>
  15.     {% endif %}#}
  16.     <div class="principal">
  17.         <div class="intro">
  18.             
  19.             
  20.             {% if app.user %}
  21.                 <div style="float:right">
  22.                     <a href="{{ path('nouvelleExigence', {'code' : projet.code}) }}" class="bouton btn" style="padding-left:40px;"><span class="material-symbols-outlined" style="top:unset">Add</span>Ajouter une exigence</a>
  23.                     <button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  24.                         Autres actions
  25.                     </button>
  26.                     <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
  27.                                         <a href="{{ path('listeExigences', {'code' : projet.code}) }}" class="dropdown-item">
  28.                     <i class="fa upload"></i>Importer un tableau Excel d'exigences
  29.                 </a>
  30.                         <a href="{{ path('publipostage', {'code' : projet.code}) }}" class="dropdown-item" style="padding-left:40px;">
  31.                             <span class="material-symbols-outlined" style="top:unset">visibility</span> 
  32.                             Faire un publipostage</a>
  33.                         <a href="{{ path('index') }}" class="dropdown-item" style="padding-left:40px;">
  34.                             <span class="material-symbols-outlined" style="top:unset">visibility</span> 
  35.                             Voir tous les projets</a>
  36.                         <a href="{{ path('projetZip',{'idProjet' : idProjet}) }}"
  37.                            class="dropdown-item" style="padding-left:40px;"><span
  38.                                 class="material-symbols-outlined" style="top:unset">Download</span> Télécharger les
  39.                             justificatifs par lot</a>
  40.                         <a href="{{ path('projetZipCicle',{'idProjet' : idProjet}) }}" class="dropdown-item"
  41.                            style="padding-left:40px;"><span class="material-symbols-outlined"
  42.                                                          style="top:unset">Download</span> Télécharger les
  43.                             justificatifs par cibles</a>                                                             
  44.                     </div>
  45.                 </div>
  46.             {% endif %}
  47.             
  48.             
  49.             <h1>Projet {{ projet.nomDuProjet }} - Liste des lots</h1>
  50.             
  51.         </div>
  52.         <div class="row">
  53.             <div class="col-sm-12">
  54.                 <table class="table table-borderless table-stripped table-hover">
  55.                     <thead>
  56.                     <tr>
  57.                         <th class="text-start align-middle">N° Lot</th>
  58.                         <td class="text-start align-middle">Nom du lot et de l'entreprise</td>
  59.                         <td class="text-center align-middle">Justificatifs<br/>fournis</td>
  60.                         <td class="text-center align-middle">Justificatifs<br/>validés</td>
  61.                         <td>&nbsp;</td>
  62.                     </tr>
  63.                     </thead>
  64.                     <tbody>
  65.                     {% for item in listeLots %}
  66.                         {% set current = item.lot %}
  67.                         <tr>
  68.                             <td class="text-start align-middle">
  69.                                 {{ item.lot }}</td>
  70.                             <td style="max-width:200px;word-break: break-word" class="text-start align-middle">{{ item.sousLots|join(' / ') }}</td>
  71.                             <td class="text-center align-middle">{{ item.nbJustificatifs }}
  72.                                 / {{ item.nbExigences }}</td>
  73.                             <td class="text-center align-middle">{{ item.nbValides }} / {{ item.nbExigences }}</td>
  74.                             <td class="text-right align-middle">
  75.                                 <a class="bouton" {#style="padding-left:40px;"#}
  76.                                    href="{{ path('lot', {'lot' : item.lot, 'code' : projet.code}) }}">{#<span
  77.                                             class="material-symbols-outlined"
  78.                                             style="top:unset">visibility</span>#}Voir le lot</a>
  79.                             </td>
  80.                         </tr>
  81.                     {% endfor %}
  82.                     </tbody>
  83.                 </table>
  84.             </div>
  85.         </div>
  86.                     <BR>Taux d'éléments fournis :
  87. <div class="progress col-6 mx-auto">
  88.    <div class="progress-bar bg-success progress-bar-striped" role="progressbar" style="width: {{tauxJustifTotal}}%;" aria-valuenow={{tauxJustifTotal}} aria-valuemin="0" aria-valuemax="100">{{tauxJustifTotal}}%</div>
  89. </div> 
  90.     </div>
  91.                    
  92.                     
  93.     <div style="margin-bottom:25px"></div>        
  94.         <div class="principal">
  95.         <div class="intro">
  96.             <h1>Liste par cible environnementale</h1>
  97.         </div>
  98.         <div class="row">
  99.             <div class="col-sm-12">
  100.                 <table class="table table-borderless table-stripped table-hover">
  101.                     <thead>
  102.                     <tr>
  103.                         <th class="text-start align-middle">Cibles</th>
  104.                         <td class="text-center align-middle">Justificatifs<br/>fournis</td>
  105.                         <td class="text-center align-middle">Justificatifs<br/>validés</td>
  106.                     </tr>
  107.                     </thead>
  108.                     <tbody>
  109.                     {% for item in listeCibles %}
  110.                         {% set current = item.cibles %}
  111.                         <tr>
  112.                             <td class="text-start align-middle">
  113.                                 {{ item.cibles }}</td>
  114.                             <td class="text-center align-middle">{{ item.nbJustificatifs }}
  115.                                 / {{ item.nbExigences }}</td>
  116.                             <td class="text-center align-middle">{{ item.nbValides }} / {{ item.nbExigences }}</td>
  117.                             <td class="text-right align-middle">
  118.                                 <a class="bouton" style="font-size:14px;padding: 10px 25px 10px 15px !important;"
  119.                                    href="{{ path('cible', {'ciblePropre' : item.ciblePropre, 'code' : projet.code}) }}">
  120.                                     <span
  121.                                             class="material-symbols-outlined"
  122.                                             style="font-size:14px">visibility</span>
  123.                                 </a>
  124.                             </td>
  125.                         </tr>
  126.                     {% endfor %}
  127.                     </tbody>
  128.                 </table>
  129.             </div>
  130.         </div>
  131.     </div>        
  132.             
  133.             
  134.                     <div><BR><BR><BR><BR><BR></div>
  135. {% endblock %}