display phonenumber and mobilenumber in search results

This commit is contained in:
Julien Fastré 2022-03-02 21:10:37 +01:00
parent b9eee51de6
commit 9fdd9da486

View File

@ -146,22 +146,27 @@
'with_valid_from': false 'with_valid_from': false
}) }} }) }}
{% endif %} {% endif %}
{% if person.phonenumber is not null %}
<li> <li>
{% if person.mobilenumber %}
<i class="fa fa-li fa-mobile"></i><a href="{{ 'tel:' ~ person.mobilenumber }}">
{{ person.mobilenumber|chill_format_phonenumber }}
</a>
{% else %}
<i class="fa fa-li fa-phone"></i> <i class="fa fa-li fa-phone"></i>
{% if person.phonenumber %} <a href="{{ 'tel:' ~ person.phonenumber|phone_number_format('E164') }}">
<a href="{{ 'tel:' ~ person.phonenumber }}">
{{ person.phonenumber|chill_format_phonenumber }} {{ person.phonenumber|chill_format_phonenumber }}
</a> </a>
{% else %}
<span class="chill-no-data-statement">{{ 'No data given'|trans }}</span>
{% endif %}
{% endif %}
</li> </li>
{% endif %}
{% if person.mobilenumber is not null %}
<li>
<i class="fa fa-li fa-mobile"></i><a href="{{ 'tel:' ~ person.mobilenumber|phone_number_format('E164') }}">
{{ person.mobilenumber|chill_format_phonenumber }}
</a>
</li>
{% endif %}
{% if person.phonenumber is null and person.mobilenumber is null %}
<li>
<i class="fa fa-li fa-phone"></i>
<span class="chill-no-data-statement">{{ 'No data given'|trans }}</span>
</li>
{% endif %}
{% if options['addCenter'] and person|chill_resolve_center|length > 0 %} {% if options['addCenter'] and person|chill_resolve_center|length > 0 %}
<li> <li>
<i class="fa fa-li fa-long-arrow-right"></i> <i class="fa fa-li fa-long-arrow-right"></i>