From 5acf9432d66d75d16a6ce85ec363b302dd3b40d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Thu, 21 Nov 2024 21:20:46 +0100 Subject: [PATCH] Add workflow title to notification content Updated the French template for workflow transition notifications to include the workflow title. This ensures users have more context in the notification email. --- .changes/unreleased/Fixed-20241121-211956.yaml | 5 +++++ ..._notification_on_transition_completed_content.fr.txt.twig | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .changes/unreleased/Fixed-20241121-211956.yaml diff --git a/.changes/unreleased/Fixed-20241121-211956.yaml b/.changes/unreleased/Fixed-20241121-211956.yaml new file mode 100644 index 000000000..7d7b59fa9 --- /dev/null +++ b/.changes/unreleased/Fixed-20241121-211956.yaml @@ -0,0 +1,5 @@ +kind: Fixed +body: Set the workflow's title to notification content and subject +time: 2024-11-21T21:19:56.150162247+01:00 +custom: + Issue: "" diff --git a/src/Bundle/ChillMainBundle/Resources/views/Workflow/workflow_notification_on_transition_completed_content.fr.txt.twig b/src/Bundle/ChillMainBundle/Resources/views/Workflow/workflow_notification_on_transition_completed_content.fr.txt.twig index 034b9c38a..03ddad84f 100644 --- a/src/Bundle/ChillMainBundle/Resources/views/Workflow/workflow_notification_on_transition_completed_content.fr.txt.twig +++ b/src/Bundle/ChillMainBundle/Resources/views/Workflow/workflow_notification_on_transition_completed_content.fr.txt.twig @@ -1,11 +1,14 @@ {{ dest.label }}, Un suivi "{{ workflow.text }}" a atteint une nouvelle étape: {{ workflow.text }} -{%- if is_dest %} + +Titre du workflow: "{{ title }}". +{% if is_dest %} Vous êtes invités à valider cette étape au plus tôt. {% endif %} + Vous pouvez visualiser le workflow sur cette page: {{ absolute_url(path('chill_main_workflow_show', {'id': entity_workflow.id, '_locale': 'fr'})) }}