Skip to content
Snippets Groups Projects
Commit a2c45495 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Show em dash if there is no phone/mobile number on person view

parent 43eed755
Branches 616-docs-document-dashboard-and-dashboard-widgets
No related tags found
1 merge request!912Resolve "Phone number in person detail not properly linked"
Pipeline #50198 passed
......@@ -164,18 +164,20 @@
<i class="material-icons small">phone</i>
</td>
<td>
{% if person.phone_number %}
<a href="{{ person.phone_number.as_rfc3966 }}">{{ person.phone_number.as_international }}</a>
{% if person.mobile_number %}
<a href="{{ person.mobile_number.as_rfc3966 }}">{{ person.mobile_number.as_international }}</a>
{% else %}
{% endif %}
<small>({% trans "home number" %})</small>
<small>({% trans "mobile number" %})</small>
</td>
</tr>
<tr>
<td>
{% if person.mobile_number %}
<a href="{{ person.mobile_number.as_rfc3966 }}">{{ person.mobile_number.as_international }}</a>
<small>({% trans "mobile number" %})</small>
{% endif %}
<small>({% trans "mobile number" %})</small>
</td>
</tr>
<tr>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment