From 9272687ec44e5875488abeb77b847bf5a67f5375 Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Wed, 8 Dec 2021 17:45:07 +0100 Subject: [PATCH] adapt in twig thirdparty renderbox --- .../Resources/views/Entity/thirdparty.html.twig | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/Bundle/ChillThirdPartyBundle/Resources/views/Entity/thirdparty.html.twig b/src/Bundle/ChillThirdPartyBundle/Resources/views/Entity/thirdparty.html.twig index 0e6f3da35..3bd97579e 100644 --- a/src/Bundle/ChillThirdPartyBundle/Resources/views/Entity/thirdparty.html.twig +++ b/src/Bundle/ChillThirdPartyBundle/Resources/views/Entity/thirdparty.html.twig @@ -82,8 +82,21 @@
{{ _self.label(thirdparty, options) }} - {% if thirdparty.kind %} - {{ ('thirdparty.' ~ thirdparty.kind)|trans }} + {% if thirdparty.kind == 'child' %} + + + {{ 'thirdparty.child'|trans }} + + {% elseif thirdparty.kind == 'company' %} + + + {{ 'thirdparty.company'|trans }} + + {% else %} + + + {{ 'thirdparty.contact'|trans }} + {% endif %}