templates/questionnaire/questionnaireStrategiqueTab.html.twig line 1

Open in your IDE?
  1. <div class="row">
  2.     <div class="col-xl-12 col-md-12">
  3.         {% for qStrat in listeQuestions[2] %}
  4.             <div class="row justify-content-center">
  5.                 <div class="col-xl-12">
  6.                     <div class="card p-4 mb-4">
  7.                         <p style="font-size: 18px; margin-bottom: 10px;margin-bottom: 3px;margin-top: 3px;">{{ loop.index }}. {{ qStrat['question'].nom }} <i class="text-danger">*</i> <span id="{{ 'error_reponse_' ~ qStrat['question'].id }}"> </span></p>
  8.                         <div class="row rowquestions" id="{{ 'row_' ~ qStrat['question'].id }}">
  9.                             <div class="col-md-10 table-responsive">
  10.                                 <table class="table table-striped">
  11.                                     <thead>
  12.                                     <tr>
  13.                                         {% for lib in qStrat['libelleReponse'] %}
  14.                                             {% for i in lib.min..lib.max %}
  15.                                                 <th>{{ i }}</th>
  16.                                             {% endfor %}
  17.                                         {% endfor %}
  18.                                     </tr>
  19.                                     </thead>
  20.                                     <tbody>
  21.                                     <tr>
  22.                                         {% for lib in qStrat['libelleReponse'] %}
  23.                                             {% for i in lib.min..lib.max %}
  24.                                                 <th style="background-color: {{ lib.couleur }}"><input {% if i == qStrat['reponse']['valeur'] %} checked {% endif %} onclick="myFunction(this, {{ qStrat['question'].id }})" data-value="{{ lib.libelle }}" data-id="{{ i }}" id="{{ 'reponse_' ~ qStrat['question'].id ~ "_" ~ i }}" name="{{ 'reponse_' ~ qStrat['question'].id }}" type="radio" value="{{ i }}" required {% if resultat == true %} disabled {% endif %}></th>
  25.                                             {% endfor %}
  26.                                         {% endfor %}
  27.                                     </tr>
  28.                                     <tr>
  29.                                         {% for lib in qStrat['libelleReponse'] %}
  30.                                             {% set colspan = lib.max - lib.min + 1 %}
  31.                                             <td style="border:1px solid black" colspan="{{ colspan }}">
  32.                                                 {{ lib.libelle }}
  33.                                             </td>
  34.                                         {% endfor %}
  35.                                     </tr>
  36.                                     </tbody>
  37.                                 </table>
  38.                             </div>
  39.                             <div class="col-md-2 d-flex justify-content-center divnote">
  40.                                 <span id="{{ 'libelle_' ~ qStrat['question'].id }}">{{ qStrat['reponse']['valeur'] }}- {{ qStrat['reponse']['texte'] }}</span>
  41.                             </div>
  42.                         </div>
  43.                     </div>
  44.                 </div>
  45.             </div>
  46.         {% endfor %}
  47.     </div>
  48. </div>