<div class="row justify-content-center pt-2">
<h5>Pour remplir ces 4 données munissez-vous de votre dernier compte de résultat et de vos tableaux d’amortissements d’emprunts.</h5>
</div>
<div class="row pt-2">
<div class="col-xl-12 col-md-12">
{% for qEcoFix in questionsFixes %}
<div class="row pb-1">
<div class="col-xl-5 offset-xl-2">
<p style="margin-top: 10px;">{{ qEcoFix.nom }} <i class="text-danger">*</i> <span id={{ 'error_' ~ qEcoFix.libelleFix }}> </span> </p>
</div>
<div class="col-xl-2 offset-xl-0">
{% if qEcoFix.libelleFix == "produit" %}
<div class="input-group mb-3">
<input type="number" name="produit" id="produit" min="1" max="2147483647" step="1" class="form-control" aria-describedby="basic-addon2" required value="{{ produit }}" {% if resultat == true %} readonly {% endif %}>
<div class="input-group-append">
<span class="input-group-text" id="basic-addon2">€</span>
</div>
</div>
{% elseif qEcoFix.libelleFix == "EBE" %}
<div class="input-group mb-3">
<input type="number" name="EBE" id="EBE" min="1" max="2147483647" step="1" class="form-control" aria-describedby="basic-addon2" required value="{{ EBE }}" {% if resultat == true %} readonly {% endif %}>
<div class="input-group-append">
<span class="input-group-text" id="basic-addon2">€</span>
</div>
</div>
{# <input name="EBE" type="number" max="2147483647" step="1" class="form-control form-control-sm" required placeholder="0 " value="{{ EBE }}" {% if resultat == true %} readonly {% endif %}>#}
{% elseif qEcoFix.libelleFix == "annuites" %}
<div class="input-group mb-3">
<input type="number" name="annuites" id="annuites" min="0" max="2147483647" step="1" class="form-control" placeholder="0" aria-describedby="basic-addon2" required value="{{ annuites }}" {% if resultat == true %} readonly {% endif %}>
<div class="input-group-append">
<span class="input-group-text" id="basic-addon2">€</span>
</div>
</div>
{# <input name="annuites" min="0" max="2147483647" type="number" step="1" class="form-control form-control-sm" required placeholder="0 €" value="{{ annuites }}" {% if resultat == true %} readonly {% endif %}>#}
{% elseif qEcoFix.libelleFix == "pac" %}
<div class="input-group mb-3">
<input type="number" name="pac" id="pac" max="2147483647" step="1" class="form-control" placeholder="0" aria-describedby="basic-addon2" required value="{{ pac }}" {% if resultat == true %} readonly {% endif %}>
<div class="input-group-append">
<span class="input-group-text" id="basic-addon2">€</span>
</div>
</div>
{% endif %}
</div>
</div>
{% endfor %}
{% if listeQuestions[1] is defined %}
{% for qEcoJauge in listeQuestions[1] %}
<div class="row justify-content-center">
<div class="col-12">
<div class="card p-4 mb-4">
<p style="font-size: 18px;margin-bottom: 3px;margin-top: 3px;">{{ loop.index }}. {{ qEcoJauge['question'].nom }} <i class="text-danger">*</i> <span id="{{ 'error_reponse_' ~ qEcoJauge['question'].id }}"> </span></p>
<div class="row rowquestions" id="{{ 'row_' ~ qEcoJauge['question'].id }}">
<div class="col-md-10 table-responsive">
<table style="border:1px solid black" class="table">
<thead>
<tr>
{% for lib in qEcoJauge['libelleReponse'] %}
{% for i in lib.min..lib.max %}
<th>{{ i }}</th>
{% endfor %}
{% endfor %}
</tr>
</thead>
<tbody>
<tr>
{% for lib in qEcoJauge['libelleReponse'] %}
{% for i in lib.min..lib.max %}
<th style="background-color: {{ lib.couleur }}">
<input {% if i == qEcoJauge['reponse']['valeur'] %} checked {% endif %} onclick="myFunction(this, {{ qEcoJauge['question'].id }})" data-value="{{ lib.libelle }}" data-id="{{ i }}" id="{{ 'reponse_' ~ qEcoJauge['question'].id ~ "_" ~ i }}" name="{{ 'reponse_' ~ qEcoJauge['question'].id }}" type="radio" value="{{ i }}" required {% if resultat == true %} disabled {% endif %}></th>
{% endfor %}
{% endfor %}
</tr>
<tr>
{% for lib in qEcoJauge['libelleReponse'] %}
{% set colspan = lib.max - lib.min + 1 %}
<td style="border:1px solid black" colspan="{{ colspan }}">
{{ lib.libelle }}
</td>
{% endfor %}
</tr>
</tbody>
</table>
</div>
<div class="col-md-2 divnote d-flex justify-content-center" >
<span id="{{ 'libelle_' ~ qEcoJauge['question'].id }}">{{ qEcoJauge['reponse']['valeur']}}- {{ qEcoJauge['reponse']['texte'] }}</span>
</div>
</div>
</div>
</div>
</div>
{% endfor %}
{% endif %}
</div>
</div>