{% extends 'baseES.html.twig' %}
{% block title %}Outil{% endblock %}
{% block body %}
<script>
{% if countPercent is defined %}
var countPercent = {{ countPercent }}
{% endif %}
{% if selectedPath is defined %}
var selectedPath = {{ selectedPath }}
{% endif %}
</script>
<div class="fs-3 mx-auto mt-5 mb-5 text-center w-75 fw-semibold">
{{ question }}
</div>
{{ form_start(form) }}
<div class="container text-center">
<div class="row">
{% for key, item in form.expertise %}
<div class="col-sm-12 col-md-4 ">
{% if isFirst is defined %}
{{ form_widget(item, {'attr': {'class': 'form-check-input cc' ~ key|trans }}) }}
<br>
{{ form_label(item, '', {'label_attr': {'class': 'fs-5 p-3 formlabel'}}) }}
{% else %}
{% if selectedPath == '1' %}
{{ form_widget(item, {'attr': {'class': 'form-check-input pinkbg ' ~ key|trans,
'style': 'border-color: #E6A497'}
})
}}
<br>
{{ form_label(item, '', {'label_attr': {'class': 'fs-5 p-3 formlabel'}}) }}
{% endif %}
{% if selectedPath == '2' %}
{{ form_widget(item, {'attr': {'class': 'form-check-input bluebg ' ~ key|trans,
'style': 'border-color: #6E8BC4'}}) }}
<br>
{{ form_label(item, '', {'label_attr': {'class': 'fs-5 p-3 formlabel'}}) }}
{% endif %}
{% if selectedPath == '3' %}
{{ form_widget(item, {'attr': {'class': 'form-check-input yellowbg ' ~ key|trans,
'style': 'border-color: #E6CA81'}}) }}
<br>
{{ form_label(item, '', {'label_attr': {'class': 'fs-5 p-3 formlabel'}}) }}
{% endif %}
{% endif %}
</div>
{% endfor %}
</div>
</div>
<div class="container w-75 text-center">
<div class="row">
{% for key, item in selectedQuestionTips %}
<div class=" col-sm-6 col-xl-4 my-1 p-2 mx-auto border-maincolor js-tips" style="display: none;"
id="tiplevel{{ key }}">
<span class="fw-bold">
¿No está seguro de su respuesta? <br>
</span>
{{ item }}
</div>
{% endfor %}
</div>
</div>
{{ form_end(form) }}
{% if countPercent != 0 %}
<div id="myProgress">
<div id="myBar">0%</div>
</div>
{% endif %}
<script>
var i = 0;
{% if countPercent is defined %}
if (i === 0) {
i = 1;
var elem = document.getElementById("myBar");
var width = 0;
var id = setInterval(frame, 10);
function frame() {
if (width >= countPercent) {
width = countPercent;
clearInterval(id);
i = 0;
} else {
width++;
elem.style.width = width + "%";
elem.innerHTML = width + "%";
}
}
}
{% endif %}
</script>
<br><br>
{% if selectedPath is defined %}
<div class="form-btn js-restart-btn ms-5">
<a href="{{ path('app-questionnaire-clear') }}" class="custombuttona "> Recommencer</a>
</div>
{% endif %}
<div class="w-100 text-center fs-1 fw-semibold px-md-5 px-sm-2 py-5">
CONSORTIUM
</div>
<div class="customwrapper fw-bold my-5">
<a href="https://www.uab.cat/" target="_blank " class="text-decoration-none">
<div class="m-2 mediumitems text-center">
<img src="{{ asset('images/logos/21 UAB Logo.png') }}" alt="" class="itemicon-legend">
{# <div class="py-2"> #}
{# Université Autonome de Barcelonne #}
{# </div> #}
</div>
</a>
<div class="m-2 mediumitems text-center">
<a href="https://eurasianet.eu/" target="_blank" class="text-decoration-none">
<img src="{{ asset('images/logos/08 Eurasianet Logo.png') }}" alt=""
class="itemicon-legend ">
{# <div class="py-2"> #}
{# Eurasianet #}
{# </div> #}
</a>
</div>
<div class="m-2 mediumitems text-center">
<a href="https://www.engagees-determinees.org/" target="_blank" class="text-decoration-none">
<img src="{{ asset('images/logos/05 CSNlogo_vector_vert.png') }}" alt="" class="itemicon-legend">
{# <div class="py-2"> #}
{# Engagé.e.s et Déterminé.e.s #}
{# </div> #}
</a>
</div>
<div class="m-2 mediumitems text-center">
<a href="http://jcvbraga.net/" target="_blank" class="text-decoration-none">
<img src="{{ asset('images/logos/06 CVP Logo.jpg') }}" alt=""
class="itemicon-legend">
{# <div class="py-2"> #}
{# Juventude CVP #}
{# </div> #}
</a>
</div>
</div>
{% endblock %}