{% macro cardImprove(title,description,isValid,pnominale,preduite,foyerOuvert,normes,listAction,key,actionsDone,multipleDiameter=false) %}

{{ title }}

Critère {{ isValid? 'correcte': 'incorrecte' }}
{{ description }} {% if isValid === false %}

Solutions INSTALL BOIS

{% for action in listAction %} {% set titleAction = action %} {% if action == "grilleExterieur" %} {% set titleAction = 'Modifier la grille extérieure' %} {% elseif action == 'grilleInterieur' %} {% set titleAction = 'Modifier la grille intérieure' %} {% elseif action == 'isolerTubage' %} {% set titleAction = 'Isoler le tubage' %} {% elseif action == 'modifierHauteur' %} {% set titleAction = 'Modifier hauteur conduit de fumée / tubage' %} {% elseif action == 'coudesCdr' %} {% set titleAction = 'Modification des coudes du conduit de raccordement connecté à l\'appareil' %} {% elseif action == 'coudesCdrApp' %} {% set titleAction = 'Modification des coudes du conduit de raccordement connecté à l\'appareil' %} {% elseif action == 'coudesCdrCf' %} {% set titleAction = 'Modification des coudes du conduit de raccordement connecté au conduit de fumée' %} {% elseif action == 'coudesTubage' %} {% set titleAction = 'Modification des coudes et tés du conduit de fumée/tubage' %} {% elseif action == 'tubage' %} {% set titleAction = 'Remplacer mon tubage par un autre tubage (isolé par exemple)' %} {% endif %} {% endfor %} {% if multipleDiameter == true %} {% endif %}
{% endif %}

Votre installation

{% if pnominale['value'] is not null %}
À puissance nominale :
{% if pnominale['isValid'] === false %} {{ pnominale['value']|round(1, 'common') }} {% endif %}
{% endif %} {% if preduite['value'] is not null %}
À puissance réduite :
{% if preduite['isValid'] === false %} {{ preduite['value']|round(1, 'common') }} {% endif %}
{% endif %} {% if foyerOuvert['value'] is not null %}
À foyer ouvert :
{% if foyerOuvert['isValid'] === false %} {{ foyerOuvert['value']|round(1, 'common') }} {% endif %}
{% endif %}

Valeurs attendues

{% for norme in normes %} {{ norme }}
{% endfor %}

{% endmacro %} {% macro edit(field) %} {% if field['key'] is not null and field['key']!=='info' %}
{% if field['new']|length > 0 %} {% if field['new'][0] is defined and field['new'][0] is not iterable %} {{ field['libelle'] }} * {% endif %}
{% for new in field['new'] %} {% if new['new'] is defined and new['new'] is iterable %}
{% for newField in new['new'] %} {% endfor %}
{% else %}
{% endif %} {% endfor %}
{% else %}
{% endif %}
{% endif %} {% endmacro %}