diff --git a/src/Bundle/ChillMainBundle/Resources/views/Workflow/workflow_send_external_email_to_destinee.html.twig b/src/Bundle/ChillMainBundle/Resources/views/Workflow/workflow_send_external_email_to_destinee.html.twig index 3dc31f1a6..865683d1f 100644 --- a/src/Bundle/ChillMainBundle/Resources/views/Workflow/workflow_send_external_email_to_destinee.html.twig +++ b/src/Bundle/ChillMainBundle/Resources/views/Workflow/workflow_send_external_email_to_destinee.html.twig @@ -1,6 +1,88 @@ - -Un message vous a été envoyé. Vous pouvez le consulter à cette adresse - -{{ absolute_url(path('chill_main_workflow_send_view_public', {'uuid': send.uuid, 'verificationKey': send.privateToken})) }} - -{{ 'workflow.send_external_message.document_available_until'|trans({ 'expiration': send.expireAt}, null, lang) }} + + +
+{%- set previous = send.entityWorkflowStepChained.previous -%} +{%- if previous.transitionBy is not null -%} + {%- set sender = previous.transitionBy|chill_entity_render_string -%} +{%- else -%} + {%- set sender = 'workflow.send_external_message.sender_system_user'|trans -%} +{%- endif -%} + +
+
+ {{ 'workflow.send_external_message.greeting'|trans }},
+
+
+ {{ 'workflow.send_external_message.explanation'|trans({'sender': sender}) }}
+
+
+ {{ 'workflow.send_external_message.confidentiality'|trans }}
+
+
+
+ {{ 'workflow.send_external_message.document_available_until'|trans({ 'expiration': send.expireAt}, null, lang) }}
+
+
+ {{ 'workflow.send_external_message.or_see_link'|trans }} :
+
+
+
+ {{ absolute_url(path('chill_main_workflow_send_view_public', {'uuid': send.uuid, 'verificationKey': send.privateToken})) }}
+ |
+