From 9fdd9da486c78d93d7caa5c8f4242f11688c9bba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 2 Mar 2022 21:10:37 +0100 Subject: [PATCH] display phonenumber and mobilenumber in search results --- .../Resources/views/Entity/person.html.twig | 31 +++++++++++-------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Resources/views/Entity/person.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/Entity/person.html.twig index e3280d755..9ffdbfae6 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/Entity/person.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/Entity/person.html.twig @@ -146,22 +146,27 @@ 'with_valid_from': false }) }} {% endif %} -
  • - {% if person.mobilenumber %} - + {% if person.phonenumber is not null %} +
  • + + + {{ person.phonenumber|chill_format_phonenumber }} + +
  • + {% endif %} + {% if person.mobilenumber is not null %} +
  • + {{ person.mobilenumber|chill_format_phonenumber }} - {% else %} +
  • + {% endif %} + {% if person.phonenumber is null and person.mobilenumber is null %} +
  • - {% if person.phonenumber %} - - {{ person.phonenumber|chill_format_phonenumber }} - - {% else %} - {{ 'No data given'|trans }} - {% endif %} - {% endif %} -
  • + {{ 'No data given'|trans }} + + {% endif %} {% if options['addCenter'] and person|chill_resolve_center|length > 0 %}