{% extends "base.html" %} {% block title %}Gestion des données — Admin GMAO{% endblock %} {% block content %}
{{ stats.equipments }} équipement(s). Suppression logique.
{{ stats.interventions }} intervention(s). Suppression logique.
{{ stats.outlook_mails }} mail(s) + {{ stats.outlook_interpretations }} interp. Suppression définitive.
{{ stats.ent_messages }} message(s) + {{ stats.ent_interpretations }} interp. Suppression définitive.
| # | Titre | Type | Statut | Équipement | Date | Actions |
|---|---|---|---|---|---|---|
| #{{ interv.id }} | {{ interv.title[:40] }}{% if interv.title|length > 40 %}…{% endif %} | {% if interv.type == 'curatif' %}Curatif {% else %}Préventif{% endif %} | {{ interv.status|format_status }} | {{ interv.equipment.name[:25] if interv.equipment else '—' }} | {{ interv.scheduled_date.strftime('%d/%m/%Y') if interv.scheduled_date else '—' }} |
Aucune intervention.
| Équipement | Salle | Statut | Actions |
|---|---|---|---|
| {{ eq.name[:30] }}{% if eq.name|length > 30 %}…{% endif %} | {{ eq.room.name if eq.room else '—' }} | {{ eq.status or '—' }} |
Aucun équipement.
| Expéditeur | Sujet | Date | Interprété | Actions |
|---|---|---|---|---|
|
{{ mail.from_name or '—' }}
{% if mail.from_email %} {{ mail.from_email }}{% endif %} |
{{ mail.subject[:60] if mail.subject else '—' }} | {{ mail.received_at|datetime_fmt if mail.received_at else '—' }} |
{% if outlook_interp_map and mail.id in outlook_interp_map %}
{% set ointerp = outlook_interp_map[mail.id] %}
{% if ointerp.status == 'pending' %}
En attente
{% elif ointerp.status == 'processed' %}
Traitée
{% elif ointerp.status == 'rejected' %}
Rejetée
{% else %}
{{ ointerp.status }}
{% endif %}
{% if ointerp.analysis_type %}
{{ ointerp.analysis_type }} {% endif %} {% else %} Non interprété {% if mail.from_email and mail.from_email in excluded_list %}Expéditeur exclu{% else %}Aucune interprétation créée (échec ou traitement à venir){% endif %} {% endif %} |
{% if not (outlook_interp_map and mail.id in outlook_interp_map) %}
{% endif %}
{% if mail.from_email %}
{% endif %}
|
Aucun mail en base.
| Expéditeur | Sujet | Date | Interprété | Actions |
|---|---|---|---|---|
|
{{ msg.sender_name or '—' }}
{% if msg.original_sender %} Transféré par: {{ msg.original_sender }}{% endif %} |
{{ msg.subject[:60] if msg.subject else '—' }} | {{ msg.date|datetime_fmt if msg.date else '—' }} |
{% if ent_interp_map and msg.id in ent_interp_map %}
{% set interp = ent_interp_map[msg.id] %}
{% if interp.status == 'pending' %}
En attente
{% elif interp.status == 'processed' %}
Traitée
{% elif interp.status == 'rejected' %}
Rejetée
{% else %}
{{ interp.status }}
{% endif %}
{% if interp.analysis_type %}
{{ interp.analysis_type }} {% endif %} {% else %} Non interprété {% if msg.sender_name and msg.sender_name in excluded_list %}Expéditeur exclu{% else %}Aucune interprétation créée (échec ou traitement à venir){% endif %} {% endif %} |
{% if not (ent_interp_map and msg.id in ent_interp_map) %}
{% endif %}
{% if msg.sender_name %}
{% endif %}
|
Aucun message ENT en base.