mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-03 08:22:18 +02:00
design tweaks
This commit is contained in:
parent
dfdf5ae555
commit
ed8541e174
2 changed files with 21 additions and 4 deletions
|
@ -405,6 +405,20 @@ a.button:active, a.button:focus {
|
|||
.usa-modal {
|
||||
font-family: inherit;
|
||||
}
|
||||
input[type=submit].button--dja-toolbar {
|
||||
border: 1px solid var(--border-color);
|
||||
font-size: 0.8125rem;
|
||||
padding: 4px 8px;
|
||||
margin: 0;
|
||||
vertical-align: middle;
|
||||
background: var(--body-bg);
|
||||
box-shadow: 0 -15px 20px -10px rgba(0, 0, 0, 0.15) inset;
|
||||
cursor: pointer;
|
||||
color: var(--body-fg);
|
||||
}
|
||||
input[type=submit].button--dja-toolbar:focus, input[type=submit].button--dja-toolbar:hover {
|
||||
border-color: var(--body-quiet-color);
|
||||
}
|
||||
// Targets the DJA buttom with a nested icon
|
||||
button .usa-icon,
|
||||
.button .usa-icon,
|
||||
|
|
|
@ -48,13 +48,13 @@
|
|||
</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<input type="submit" value="Select and preview" class="usa-button usa-button--dja">
|
||||
<input type="submit" value="Select and preview" class="button--dja-toolbar">
|
||||
</form>
|
||||
</div>
|
||||
<div class="desktop:flex-align-center">
|
||||
{% if selected_user %}
|
||||
<a class="usa-button usa-button--dja" href="#transfer-and-delete" aria-controls="transfer-and-delete" data-open-modal>
|
||||
Transfer and delete old user
|
||||
Transfer and delete user
|
||||
</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
@ -184,10 +184,13 @@
|
|||
<div class="usa-modal__content">
|
||||
<div class="usa-modal__main">
|
||||
<h2 class="usa-modal__heading" id="transfer-and-delete-heading">
|
||||
This action will delete {{ selected_user }}
|
||||
Are you sure you want to transfer data and delete this user?
|
||||
</h2>
|
||||
<div class="usa-prose">
|
||||
{% if selected_user != logged_in_user %}
|
||||
<p>Username: <b>{{ selected_user.username }}</b><br>
|
||||
Name: <b>{{ selected_user.first_name }} {{ selected_user.last_name }}</b><br>
|
||||
Email: <b>{{ selected_user.email }}</b></p>
|
||||
<p>This action cannot be undone.</p>
|
||||
{% else %}
|
||||
<p>Don't do it!</p>
|
||||
|
@ -201,7 +204,7 @@
|
|||
<form method="POST" action="{% url 'transfer_user' current_user.pk %}">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="selected_user" value="{{ selected_user.pk }}">
|
||||
<input type="submit" class="usa-button usa-button--dja" value="Transfer and delete old user">
|
||||
<input type="submit" class="usa-button usa-button--dja" value="Yes, transfer and delete user">
|
||||
</form>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue