{% import "forms-macro/inputs_form.html.twig" as input %} {% import "forms-macro/popup.html.twig" as popup %}

{{ type === 'TMRECTANGLESC' ? 'Dimension' : 'Diamètre' }} du {{ conduitType }} choisi

{% if noDiameter %} {{ popup.popup_no_diameter() }} {% else %}
{% for buse, diameters in buseDiameters %}
{% if has2Buses is not empty %}

Buse {{ buse }}

{% endif %} {% if otherDiameter[buse] is defined and otherDiameter[buse] is not empty %}
{{ input.adrDiameterInput(otherDiameter[buse], otherDiameter[buse]['diameter'], type, isBigPN, choixAACForfait, buse) }}
{% elseif mainDiameter[buse] is defined and mainDiameter[buse] is not empty %}
{{ input.adrDiameterInput(mainDiameter[buse], mainDiameter[buse]['diameter'], type, isBigPN, choixAACForfait, buse) }}
{% else %}
Pas de diamètre
{% endif %}
{% endfor %}
{% if otherDiameter is empty and mainDiameter is empty %}

Diamètre non disponible pour le calcul.
Merci de choisir un autre diamètre.

{% endif %} {{ include('project/adr/_block/cdc/_help_button.html.twig') }} {% endif %} {% if noDiameter == false %}

{{ type === 'TMRECTANGLESC' ? 'Dimensions' : 'Diamètres' }} du {{ conduitType }} non sélectionnés

Autres options proches de votre choix initial

{% for buse, diameters in buseDiameters %} {% set lastDiam = null %}
{% if has2Buses is not empty %}

Buse {{ buse }}

{% endif %}
{% for diameter, data in diameters %} {% if lastDiam <= selectedDiam and diameter >= selectedDiam %}
{% endif %} {{ input.adrDiameterInput(data, diameter, type, isBigPN, choixAACForfait, buse) }} {% set lastDiam = diameter %} {% endfor %}
{% endfor %}
{% endif %}