From 213cc158207f6f6ef343827c0c2226f3935e354b Mon Sep 17 00:00:00 2001 From: root Date: Fri, 21 Aug 2026 10:38:37 +0000 Subject: [PATCH] =?UTF-8?q?Charger=20la=20fiche=20intervention=20mise=20?= =?UTF-8?q?=C3=A0=20jour?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app_new/interventions/crud.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app_new/interventions/crud.py b/app_new/interventions/crud.py index 20788fe..a5cf11e 100644 --- a/app_new/interventions/crud.py +++ b/app_new/interventions/crud.py @@ -24,7 +24,7 @@ from ..core.models.college import Room from ..core.models.company import Service, Company from app_new.constants import INTERVENTION_STATUSES, INTERVENTION_TRANSITIONS, PRIORITIES, WORKFLOW_TYPES, WORKFLOW_STATUS_ORDERS -interventions_bp = Blueprint('interventions', __name__) +interventions_bp = Blueprint('interventions', __name__, template_folder='templates') @interventions_bp.route('/') @@ -404,7 +404,9 @@ def detail(id): transitions = [(key, value['label']) for key, value in INTERVENTION_STATUSES.items() if key in INTERVENTION_TRANSITIONS.get(intervention.status, set()) and key in allowed_workflow_statuses] history = intervention.status_history.order_by(StatusChange.created_at.desc()).all() - return render_template('interventions/detail.html', + # Utiliser explicitement le template du module. Une ancienne copie globale + # de ``interventions/detail.html`` est conservée pour compatibilité. + return render_template('detail.html', intervention=intervention, statuses=INTERVENTION_STATUSES, transitions=transitions,