mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
display phonenumber and mobilenumber in search results
This commit is contained in:
parent
b9eee51de6
commit
9fdd9da486
@ -146,22 +146,27 @@
|
|||||||
'with_valid_from': false
|
'with_valid_from': false
|
||||||
}) }}
|
}) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<li>
|
{% if person.phonenumber is not null %}
|
||||||
{% if person.mobilenumber %}
|
<li>
|
||||||
<i class="fa fa-li fa-mobile"></i><a href="{{ 'tel:' ~ person.mobilenumber }}">
|
<i class="fa fa-li fa-phone"></i>
|
||||||
|
<a href="{{ 'tel:' ~ person.phonenumber|phone_number_format('E164') }}">
|
||||||
|
{{ person.phonenumber|chill_format_phonenumber }}
|
||||||
|
</a>
|
||||||
|
</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 }}
|
{{ person.mobilenumber|chill_format_phonenumber }}
|
||||||
</a>
|
</a>
|
||||||
{% else %}
|
</li>
|
||||||
|
{% endif %}
|
||||||
|
{% if person.phonenumber is null and person.mobilenumber is null %}
|
||||||
|
<li>
|
||||||
<i class="fa fa-li fa-phone"></i>
|
<i class="fa fa-li fa-phone"></i>
|
||||||
{% if person.phonenumber %}
|
<span class="chill-no-data-statement">{{ 'No data given'|trans }}</span>
|
||||||
<a href="{{ 'tel:' ~ person.phonenumber }}">
|
</li>
|
||||||
{{ person.phonenumber|chill_format_phonenumber }}
|
{% endif %}
|
||||||
</a>
|
|
||||||
{% else %}
|
|
||||||
<span class="chill-no-data-statement">{{ 'No data given'|trans }}</span>
|
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
|
||||||
</li>
|
|
||||||
{% 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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user