Use the twig function chill_entity_render_string to render the person's name

This commit is contained in:
Julien Fastré 2024-10-21 13:59:39 +02:00
parent 7b322d7bab
commit d45de5405b
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -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 %}
<div class="col-10 workflow">
<h1 class="mb-5">{{ 'workflow.signature_zone.metadata.sign_by'|trans({ '%name%' : person.firstname ~ ' ' ~ person.lastname}) }}</h1>
<h1 class="mb-5">{{ block('title') }}</h1>
{% if metadata_form is not null %}
{{ form_start(metadata_form) }}