Hide copy button if no email on other contact

This commit is contained in:
Rachid Mrad 2024-10-03 12:06:49 -04:00
parent 9b091263d4
commit 3f11dd084e
No known key found for this signature in database

View file

@ -254,7 +254,7 @@ This is using a custom implementation fieldset.html (see admin/fieldset.html)
<table> <table>
<thead> <thead>
<tr> <tr>
<th colspan="4">Other contact information</th> <th colspan="5">Other contact information</th>
<tr> <tr>
</thead> </thead>
<tbody> <tbody>
@ -267,6 +267,7 @@ This is using a custom implementation fieldset.html (see admin/fieldset.html)
</td> </td>
<td class="padding-left-1">{{ contact.phone }}</td> <td class="padding-left-1">{{ contact.phone }}</td>
<td class="padding-left-1 text-size-small"> <td class="padding-left-1 text-size-small">
{% if contact.email %}
<input aria-hidden="true" class="display-none" value="{{ contact.email }}" /> <input aria-hidden="true" class="display-none" value="{{ contact.email }}" />
<button <button
class=" class="
@ -290,6 +291,7 @@ This is using a custom implementation fieldset.html (see admin/fieldset.html)
<!-- the span is targeted in JS, do not remove --> <!-- the span is targeted in JS, do not remove -->
<span>Copy email</span> <span>Copy email</span>
</button> </button>
{% endif %}
</td> </td>
</tr> </tr>
{% endfor %} {% endfor %}