{% load i18n static %} {% with leaf=insp.detailed_inspection %} {% if leaf %}
{% if leaf.date_derniere_pluie and leaf.date_derniere_pluie != 'null' or leaf.orage_moins_une_heure is not None %}
{% translate "Conditions météorologiques" %}
{% if leaf.date_derniere_pluie and leaf.date_derniere_pluie != 'null' %}
{% translate "Date de la dernière pluie" %} : {{ leaf.get_date_derniere_pluie_display }}
{% endif %} {% if leaf.orage_moins_une_heure is not None %}
{% translate "Orage récent (-1h)" %} : {% if leaf.orage_moins_une_heure %}{% translate "Oui" %}{% else %}{% translate "Non" %}{% endif %}
{% endif %}
{% endif %} {% if leaf.data and leaf.data.ouvrages %}
{% translate "Ouvrages GIEP inspectés" %} ({{ leaf.data.ouvrages|length }})
{% for ouv in leaf.data.ouvrages %}
{% translate "Ouvrage" %} #{{ forloop.counter }} {% if ouv.device_type == 'evc' %} {% translate "Espace vert creux (EVC)" %} {% elif ouv.device_type == 'oed' %} {% translate "Massif drainant (OED)" %} {% elif ouv.device_type == 'ta' %} {% translate "Technique alternative (TA)" %} {% else %} {% translate "GÉNÉRIQUE" %} {% endif %} {% if ouv.name %} {{ ouv.name }} {% endif %}
{% if ouv.actions %}

{% translate "Recommandations" %}

{% if ouv.actions.aucune %} {% translate "Aucune" %} {% endif %} {% if ouv.actions.interventions_preventives or ouv.actions.renforcement_preventif %} {% translate "Interventions préventives" %} {% endif %} {% if ouv.actions.entretien_curatif %} {% translate "Entretien curatif / Réparation / Adaptation nécessaire" %} {% endif %} {% if ouv.actions.test_permeabilite %} {% translate "Test de perméabilité" %} {% endif %} {% if ouv.actions.inspection %} {% translate "Inspection" %} {% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% endif %} {% endwith %}