mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-15 05:54:11 +02:00
WIP for new copy fields
This commit is contained in:
parent
e7edf19897
commit
438df069d6
2 changed files with 37 additions and 6 deletions
|
@ -17,11 +17,28 @@
|
||||||
<tr>
|
<tr>
|
||||||
<th class="padding-left-0" scope="row">Email</th>
|
<th class="padding-left-0" scope="row">Email</th>
|
||||||
{% if user.email or user.contact.email %}
|
{% if user.email or user.contact.email %}
|
||||||
|
<td>
|
||||||
|
<span>
|
||||||
{% if user.contact.email %}
|
{% if user.contact.email %}
|
||||||
<td>{{ user.contact.email }}</td>
|
{{ user.contact.email }}
|
||||||
|
<input type="hidden" value="{{ user.contact.email }}" id="id_email">
|
||||||
{% else %}
|
{% else %}
|
||||||
<td>{{ user.email }}</td>
|
{{ user.email }}
|
||||||
|
<input type="hidden" value="{{ user.email }}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
<button
|
||||||
|
class="usa-button usa-button--unstyled padding-left-2 usa-button__icon usa-button__clipboard"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
<svg
|
||||||
|
class="usa-icon"
|
||||||
|
>
|
||||||
|
<use aria-hidden="true" xlink:href="{%static 'img/sprite.svg'%}#content_copy"></use>
|
||||||
|
</svg>
|
||||||
|
</button>
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
<td>Nothing found</td>
|
<td>Nothing found</td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -62,7 +62,21 @@ This is using a custom implementation fieldset.html (see admin/fieldset.html)
|
||||||
<tr data-contact-id="{{ contact.id }}" data-contact-url="{% url 'admin:registrar_contact_change' contact.id %}">
|
<tr data-contact-id="{{ contact.id }}" data-contact-url="{% url 'admin:registrar_contact_change' contact.id %}">
|
||||||
<th scope="row">{{contact.first_name}} {{contact.last_name}}</th>
|
<th scope="row">{{contact.first_name}} {{contact.last_name}}</th>
|
||||||
<td>{{ contact.title }}</td>
|
<td>{{ contact.title }}</td>
|
||||||
<td>{{ contact.email }}</td>
|
<td>
|
||||||
|
<input type="hidden" value="{{ contact.email }}">
|
||||||
|
<button
|
||||||
|
class="usa-button usa-button--unstyled usa-button__icon usa-button__clipboard"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
<svg
|
||||||
|
class="usa-icon"
|
||||||
|
>
|
||||||
|
<use aria-hidden="true" xlink:href="{%static 'img/sprite.svg'%}#content_copy"></use>
|
||||||
|
</svg>
|
||||||
|
</button>
|
||||||
|
{{ contact.email }}
|
||||||
|
|
||||||
|
</td>
|
||||||
<td>{{ contact.phone }}</td>
|
<td>{{ contact.phone }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue