From d45de5405b883c4bf5572a063a5f1861f2ecc427 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Mon, 21 Oct 2024 13:59:39 +0200 Subject: [PATCH] Use the twig function `chill_entity_render_string` to render the person's name --- .../Resources/views/Workflow/signature_metadata.html.twig | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Bundle/ChillMainBundle/Resources/views/Workflow/signature_metadata.html.twig b/src/Bundle/ChillMainBundle/Resources/views/Workflow/signature_metadata.html.twig index 5b828832d..bb580d25a 100644 --- a/src/Bundle/ChillMainBundle/Resources/views/Workflow/signature_metadata.html.twig +++ b/src/Bundle/ChillMainBundle/Resources/views/Workflow/signature_metadata.html.twig @@ -1,12 +1,10 @@ {% extends '@ChillMain/layout.html.twig' %} -{% block title %} - {{ 'Signature'|trans }} -{% endblock %} +{% block title 'workflow.signature_zone.metadata.sign_by'|trans({ '%name%' : person|chill_entity_render_string}) %} {% block content %}
-

{{ 'workflow.signature_zone.metadata.sign_by'|trans({ '%name%' : person.firstname ~ ' ' ~ person.lastname}) }}

+

{{ block('title') }}

{% if metadata_form is not null %} {{ form_start(metadata_form) }}