Closes #7925: Linkify contact phone and email attributes

This commit is contained in:
jeremystretch
2021-12-03 10:51:24 -05:00
parent 3b23d656f2
commit d0c6b1cf59
4 changed files with 36 additions and 4 deletions

View File

@@ -37,11 +37,23 @@
</tr>
<tr>
<td>Phone</td>
<td>{{ object.phone|placeholder }}</td>
<td>
{% if object.phone %}
<a href="tel:{{ object.phone }}">{{ object.phone }}</a>
{% else %}
<span class="text-muted">None</span>
{% endif %}
</td>
</tr>
<tr>
<td>Email</td>
<td>{{ object.email|placeholder }}</td>
<td>
{% if object.phone %}
<a href="mailto:{{ object.email }}">{{ object.email }}</a>
{% else %}
<span class="text-muted">None</span>
{% endif %}
</td>
</tr>
<tr>
<td>Address</td>