From c2e284682f6d88fffecb7f25afed53c5d9c15468 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 2 Mar 2022 16:13:09 +0100 Subject: [PATCH] phonenumber on 3party: twig stuffs --- .../Resources/views/Entity/thirdparty.html.twig | 4 ++-- .../Resources/views/ThirdParty/view.html.twig | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Bundle/ChillThirdPartyBundle/Resources/views/Entity/thirdparty.html.twig b/src/Bundle/ChillThirdPartyBundle/Resources/views/Entity/thirdparty.html.twig index 79aa7be6c..80dcac245 100644 --- a/src/Bundle/ChillThirdPartyBundle/Resources/views/Entity/thirdparty.html.twig +++ b/src/Bundle/ChillThirdPartyBundle/Resources/views/Entity/thirdparty.html.twig @@ -110,8 +110,8 @@ }) }}
  • - {% if thirdparty.telephone %} - {{ thirdparty.telephone|chill_format_phonenumber }} + {% if thirdparty.telephone is not null %} + {{ thirdparty.telephone|chill_format_phonenumber }} {% else %} {{ 'thirdparty.No_phonenumber'|trans }} {% endif %} diff --git a/src/Bundle/ChillThirdPartyBundle/Resources/views/ThirdParty/view.html.twig b/src/Bundle/ChillThirdPartyBundle/Resources/views/ThirdParty/view.html.twig index 824438fa3..5a6a75225 100644 --- a/src/Bundle/ChillThirdPartyBundle/Resources/views/ThirdParty/view.html.twig +++ b/src/Bundle/ChillThirdPartyBundle/Resources/views/ThirdParty/view.html.twig @@ -67,10 +67,10 @@
    {{ 'Phonenumber'|trans }}
    {% if thirdParty.telephone == null %} - {{ 'No phone given'|trans }} + {{ 'thirdparty.No_phonenumber'|trans }} {% else %} - - {{ thirdParty.telephone|chill_print_or_message("thirdparty.No_phonenumber") }} + + {{ thirdParty.telephone|chill_format_phonenumber }} {% endif %}