Enhance signature display with detailed person information

Updated the signature view template to include person details using the '_insert_vue_onthefly.html.twig' template. This change adds more contextual information about the signer, such as their name and status, improving the user experience.
This commit is contained in:
Julien Fastré 2024-09-04 17:26:46 +02:00
parent 71d3aa3969
commit 20f2bc6c35
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -3,7 +3,14 @@
<div class="container">
{% for s in signatures %}
<div class="row align-items-center">
<div class="col-sm-12 col-md-8"><span>{{ s.signer|chill_entity_render_box }}</span></div>
<div class="col-sm-12 col-md-8">
{% include '@ChillMain/OnTheFly/_insert_vue_onthefly.html.twig' with {
action: 'show', displayBadge: true,
targetEntity: { name: 'person', id: s.signer.id },
buttonText: s.signer|chill_entity_render_string,
isDead: s.signer.deathDate is not null
} %}
</div>
<div class="col-sm-12 col-md-4">
{% if s.isSigned %}
<p class="text-end">{{ 'workflow.signature_zone.has_signed_statement'|trans({ 'datetime' : s.stateDate }) }}</p>