templates/questionnaire/pt/index.html.twig line 1

Open in your IDE?
  1. {% extends 'basePT.html.twig' %}
  2. {% block title %}Outil{% endblock %}
  3. {% block body %}
  4.     <script>
  5.         {% if countPercent is defined %}
  6.         var countPercent = {{ countPercent }}
  7.         {% endif %}
  8.         {% if selectedPath is defined %}
  9.         var selectedPath = {{ selectedPath }}
  10.         {% endif %}
  11.     </script>
  12.     <div class="fs-3 mx-auto mt-5 mb-5 text-center w-75 fw-semibold">
  13.         {{ question }}
  14.     </div>
  15.     {{ form_start(form) }}
  16.     <div class="container text-center">
  17.         <div class="row">
  18.             {% for key, item in form.expertise %}
  19.                 <div class="col-sm-12 col-md-4 ">
  20.                     {% if isFirst is defined %}
  21.                         {{ form_widget(item, {'attr': {'class': 'form-check-input cc' ~ key|trans }}) }}
  22.                         <br>
  23.                         {{ form_label(item, '', {'label_attr': {'class': 'fs-5 p-3 formlabel'}}) }}
  24.                     {% else %}
  25.                         {% if selectedPath == '1' %}
  26.                             {{ form_widget(item, {'attr': {'class': 'form-check-input pinkbg ' ~ key|trans,
  27.                                 'style': 'border-color: #E6A497'}
  28.                             })
  29.                             }}
  30.                             <br>
  31.                             {{ form_label(item, '', {'label_attr': {'class': 'fs-5 p-3 formlabel'}}) }}
  32.                         {% endif %}
  33.                         {% if selectedPath == '2' %}
  34.                             {{ form_widget(item, {'attr':  {'class': 'form-check-input bluebg ' ~ key|trans,
  35.                                 'style': 'border-color: #6E8BC4'}}) }}
  36.                             <br>
  37.                             {{ form_label(item, '', {'label_attr': {'class': 'fs-5 p-3 formlabel'}}) }}
  38.                         {% endif %}
  39.                         {% if selectedPath == '3' %}
  40.                             {{ form_widget(item, {'attr':  {'class': 'form-check-input yellowbg ' ~ key|trans,
  41.                                 'style': 'border-color: #E6CA81'}}) }}
  42.                             <br>
  43.                             {{ form_label(item, '', {'label_attr': {'class': 'fs-5 p-3 formlabel'}}) }}
  44.                         {% endif %}
  45.                     {% endif %}
  46.                 </div>
  47.             {% endfor %}
  48.         </div>
  49.     </div>
  50.     <div class="container w-75 text-center">
  51.         <div class="row">
  52.             {% for key, item in selectedQuestionTips %}
  53.                 <div class=" col-sm-6  col-xl-4 my-1 p-2 mx-auto border-maincolor js-tips" style="display: none;"
  54.                      id="tiplevel{{ key }}">
  55.                     <span class="fw-bold">
  56.                          Não tem certeza da resposta ? <br>
  57.                     </span>
  58.                     {{ item }}
  59.                 </div>
  60.             {% endfor %}
  61.         </div>
  62.     </div>
  63.     {{ form_end(form) }}
  64.     {% if countPercent != 0 %}
  65.         <div id="myProgress">
  66.             <div id="myBar">0%</div>
  67.         </div>
  68.     {% endif %}
  69.     <script>
  70.         var i = 0;
  71.         {% if countPercent is defined %}
  72.         if (i === 0) {
  73.             i = 1;
  74.             var elem = document.getElementById("myBar");
  75.             var width = 0;
  76.             var id = setInterval(frame, 10);
  77.             function frame() {
  78.                 if (width >= countPercent) {
  79.                     width = countPercent;
  80.                     clearInterval(id);
  81.                     i = 0;
  82.                 } else {
  83.                     width++;
  84.                     elem.style.width = width + "%";
  85.                     elem.innerHTML = width + "%";
  86.                 }
  87.             }
  88.         }
  89.         {% endif %}
  90.     </script>
  91.     <br><br>
  92.     {% if selectedPath is defined %}
  93.         <div class="form-btn js-restart-btn ms-5">
  94.             <a href="{{ path('app-questionnaire-clear') }}" class="custombuttona "> Recommencer</a>
  95.         </div>
  96.     {% endif %}
  97.     <div class="w-100 text-center fs-1 fw-semibold px-md-5 px-sm-2 py-5">
  98.         CONSORTIUM
  99.     </div>
  100.     <div class="customwrapper fw-bold my-5">
  101.         <a href="https://www.uab.cat/" target="_blank " class="text-decoration-none">
  102.             <div class="m-2 mediumitems text-center">
  103.                 <img src="{{ asset('images/logos/21 UAB Logo.png') }}" alt="" class="itemicon-legend">
  104.                 {#                    <div class="py-2"> #}
  105.                 {#                        Université Autonome de Barcelonne #}
  106.                 {#                    </div> #}
  107.             </div>
  108.         </a>
  109.         <div class="m-2 mediumitems text-center">
  110.             <a href="https://eurasianet.eu/" target="_blank" class="text-decoration-none">
  111.                 <img src="{{ asset('images/logos/08 Eurasianet Logo.png') }}" alt=""
  112.                      class="itemicon-legend ">
  113.                 {#                    <div class="py-2"> #}
  114.                 {#                        Eurasianet #}
  115.                 {#                    </div> #}
  116.             </a>
  117.         </div>
  118.         <div class="m-2 mediumitems text-center">
  119.             <a href="https://www.engagees-determinees.org/" target="_blank" class="text-decoration-none">
  120.                 <img src="{{ asset('images/logos/05 CSNlogo_vector_vert.png') }}" alt="" class="itemicon-legend">
  121.                 {#                    <div class="py-2"> #}
  122.                 {#                        Engagé.e.s et Déterminé.e.s #}
  123.                 {#                    </div> #}
  124.             </a>
  125.         </div>
  126.         <div class="m-2 mediumitems text-center">
  127.             <a href="http://jcvbraga.net/" target="_blank" class="text-decoration-none">
  128.                 <img src="{{ asset('images/logos/06 CVP Logo.jpg') }}" alt=""
  129.                      class="itemicon-legend">
  130.                 {#                    <div class="py-2"> #}
  131.                 {#                        Juventude CVP #}
  132.                 {#                    </div> #}
  133.             </a>
  134.         </div>
  135.     </div>
  136. {% endblock %}