mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-16 06:24:12 +02:00
Hide copy button if no email on other contact
This commit is contained in:
parent
9b091263d4
commit
3f11dd084e
1 changed files with 25 additions and 23 deletions
|
@ -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,29 +267,31 @@ 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">
|
||||||
<input aria-hidden="true" class="display-none" value="{{ contact.email }}" />
|
{% if contact.email %}
|
||||||
<button
|
<input aria-hidden="true" class="display-none" value="{{ contact.email }}" />
|
||||||
class="
|
<button
|
||||||
usa-button--dja
|
class="
|
||||||
usa-button
|
usa-button--dja
|
||||||
usa-button__small-text
|
usa-button
|
||||||
usa-button--unstyled
|
usa-button__small-text
|
||||||
padding-right-1
|
usa-button--unstyled
|
||||||
padding-top-0
|
padding-right-1
|
||||||
padding-bottom-0
|
padding-top-0
|
||||||
usa-button--icon
|
padding-bottom-0
|
||||||
copy-to-clipboard
|
usa-button--icon
|
||||||
text-no-underline"
|
copy-to-clipboard
|
||||||
type="button"
|
text-no-underline"
|
||||||
>
|
type="button"
|
||||||
<svg
|
|
||||||
class="usa-icon"
|
|
||||||
>
|
>
|
||||||
<use aria-hidden="true" xlink:href="{%static 'img/sprite.svg'%}#content_copy"></use>
|
<svg
|
||||||
</svg>
|
class="usa-icon"
|
||||||
<!-- the span is targeted in JS, do not remove -->
|
>
|
||||||
<span>Copy email</span>
|
<use aria-hidden="true" xlink:href="{%static 'img/sprite.svg'%}#content_copy"></use>
|
||||||
</button>
|
</svg>
|
||||||
|
<!-- the span is targeted in JS, do not remove -->
|
||||||
|
<span>Copy email</span>
|
||||||
|
</button>
|
||||||
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue