{% load i18n tz %} {% if show_dai_history %}
| {% translate "Date" %} | {% translate "Intervention" %} | {% translate "Équipe / Prestataire" %} | {% for ddef in detection_defs %}{{ ddef.short_label }} | {% endfor %}{% translate "Bilan" %} |
|---|---|---|---|---|
| {% if session.date %} {{ session.date|timezone:"Europe/Paris"|date:"d/m/Y H:i" }} {% else %} — {% endif %} |
#{{ session.intervention.id }}
{{ session.intervention.title }}
|
{% if session.intervention.assigned_team %}
{{ session.intervention.assigned_team.name }}
{% endif %}
{% if session.intervention.assigned_provider %}
{{ session.intervention.assigned_provider.name }}
{% endif %}
|
{% for res in session.results %}
{% if res.detection == 'OK' %}
{% if res.is_slow %}
OK (>{{ session.threshold }}s)
{% else %}
OK
{% endif %}
{% elif res.detection == 'NOK' %}
NOK
{% elif res.detection == 'NA' %}
N/A
{% else %}
—
{% endif %}
{% if res.detection_time_sec != None and res.detection_time_sec != '' %}
{{ res.detection_time_sec }} s
{% if res.event_time %}
({{ res.event_time }})
{% endif %}
{% elif res.event_time %}
{{ res.event_time }}
{% endif %}
{% if res.remark %}
{{ res.remark }}
{% endif %}
|
{% endfor %}
{% if session.tested_count > 0 %} {{ session.good_count }} / {{ session.tested_count }} {% else %} N/A {% endif %} |
{% translate "Aucun test DAI (CTV/OTV-5) enregistré pour cette caméra." %}
{% endif %}