{# templates/entreprise/intervention/show.html.twig #} {% extends 'entreprise/entreprise_base.html.twig' %} {% block title %}Intervention #{{ intervention.id }} | {{ intervention.appartement.titre }}{% endblock %} {% block body %} {# --- LOGIQUE DE CONTRÔLE --- #} {% set isExpired = (abonnementActuel is null or not abonnementActuel.isActive()) %} {% set canModify = (not isExpired) %} {# Utilisation de la devise de l'entreprise si disponible, sinon F.CFA #} {% set currency = app.user.entreprise.devise.symbole|default('F.CFA') %}
{# --- EN-TÊTE HARMONISÉ --- #}

Réf : #{{ intervention.id }} | Type : {{ intervention.typeName }}

Liste {% if is_granted('ROLE_ENTREPRISE_COLLAB') %}
Modifier
{% endif %}
{% include 'flash_messages.html.twig' %}
{# --- COLONNE GAUCHE : INFOS TECHNIQUES --- #}
Spécifications techniques
Nature des travaux
{{ intervention.typeName }}
Date d'intervention
{{ intervention.dates ? intervention.dates|date('d/m/Y') : 'Non planifiée' }}
Immeuble / Lot
{{ intervention.appartement.immeuble.titre }}
{# DESCRIPTION #}
Description des travaux
{% if intervention.description %} {{ intervention.description }} {% else %} Aucune description détaillée n'a été saisie pour cette intervention. {% endif %}
{# --- COLONNE DROITE : FINANCES & ACTIONS --- #}
{# COÛT TOTAL #}
Coût Total HT
{{ intervention.montant|number_format(0, '.', ' ') }} {{ currency }}

Montant imputé aux charges de maintenance.

{# ZONE DE DANGER #} {% if is_granted('ROLE_ENTREPRISE_ROOT') %}
Administration

La suppression est irréversible et retirera ce montant de vos statistiques de dépenses.

{{ include('entreprise/intervention/_delete_form.html.twig', {'intervention': intervention}) }}
{% endif %} {# NOTE D'INFORMATION #}
Cette fiche permet de suivre l'historique des réparations de l'appartement {{ intervention.appartement.titre }}.
{% endblock %} {% block stylesheets %} {{ parent() }} {% endblock %}