fix in view template to display firstname + lastname in title if it exists

This commit is contained in:
Julie Lenaerts 2022-03-21 09:53:59 +01:00
parent 2463a492c8
commit 5cbe14464d

View File

@ -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_ %}