{% extends "base.html" %} {% block title %}Alertes — GMAO Collège{% endblock %} {% block content %}

Alertes

Retour
{% if alerts %}
Alertes système ({{ alerts|length }})
{% for alert in alerts %} {% endfor %}
Titre Message Date Actions
{{ alert.title or 'Alerte' }} {{ alert.message[:100] if alert.message else '—' }} {{ alert.created_at.strftime('%d/%m/%Y %H:%M') if alert.created_at else '—' }}
{% endif %} {% if urgent_interventions %}
Interventions prioritaires ({{ urgent_interventions|length }})
{% for interv in urgent_interventions %} {% endfor %}
# Titre Équipement Date planifiée Statut
#{{ interv.id }} {{ interv.title[:50] }}{% if interv.title|length > 50 %}…{% endif %} {{ interv.equipment.name[:30] if interv.equipment else '—' }} {{ interv.scheduled_date.strftime('%d/%m/%Y') if interv.scheduled_date else '—' }} {{ interv.status|format_status }}
{% endif %} {% if equipments_panne %}
Équipements en panne ({{ equipments_panne|length }})
{% for eq in equipments_panne %} {% endfor %}
Équipement Salle Catégorie Actions
{{ eq.name }} {{ eq.room.name if eq.room else '—' }} {{ eq.category.name if eq.category else '—' }} Nouvelle intervention
{% endif %} {% if pending_outlook or pending_ent %}
Interprétations en attente {% if pending_outlook %}{{ pending_outlook|length }} Outlook{% endif %} {% if pending_ent %}{{ pending_ent|length }} ENT{% endif %}
{% for interp in pending_outlook %} {% endfor %} {% for interp in pending_ent %} {% endfor %}
Source Type Expéditeur Sujet Actions
Outlook {{ interp.analysis_type or '—' }} {{ interp.mail.from_name if interp.mail else '—' }} {{ (interp.mail.subject if interp.mail else 'N/A')[:40] }} Créer intervention
ENT {{ interp.analysis_type or '—' }} {{ interp.message.sender_name if interp.message else '—' }} {{ (interp.message.subject if interp.message else 'N/A')[:40] }} Créer intervention
{% endif %} {% if not alerts and not urgent_interventions and not equipments_panne and not pending_outlook and not pending_ent %}
Aucune alerte pour le moment. Tout est au vert !
{% endif %}
{% endblock %}