mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
fix in view template to display firstname + lastname in title if it exists
This commit is contained in:
parent
2463a492c8
commit
5cbe14464d
@ -1,7 +1,8 @@
|
||||
{% extends "@ChillMain/layout.html.twig" %}
|
||||
|
||||
{% set thirdParty = entity %}
|
||||
{% set title_ = 'Show third party %name%'|trans({'%name%' : thirdParty.name }) %}
|
||||
{% set name = thirdParty.firstname is not empty ? thirdParty.firstname ~ ' ' ~ thirdParty.name : thirdParty.name %}
|
||||
{% set title_ = 'Show third party %name%'|trans({'%name%' : name }) %}
|
||||
|
||||
{% block title title_ %}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user