Rearranging buttons

This commit is contained in:
Halfdan Mouritzen 2024-01-15 19:21:08 +01:00
parent 60d0503dbf
commit a0bbc3adc0
2 changed files with 14 additions and 8 deletions

View file

@ -267,6 +267,12 @@ button:hover {
opacity : 1.0;
}
button:disabled {
opacity : 0.6;
background : var(--twilight);
cursor : default;
}
article table {
width : 100%;
border-spacing : 0;

View file

@ -16,6 +16,12 @@
<form action="{% url 'account_email' %}" class="email_list" method="post">
{% csrf_token %}
<fieldset class="blockLabels">
<div class="buttonHolder">
<button class="btn small btn-success" type="submit" name="action_primary" style="float:right">+ Add Email</button>
<button class="btn small btn-success" disabled type="submit" name="action_primary">Make Primary</button>
<button class="btn small btn-primary" type="submit" name="action_send">Re-send Verification</button>
<button class="btn small btn-danger" type="submit" name="action_remove">Remove</button>
</div>
<table class="table" id="user_email_table">
<thead>
<tr>
@ -62,13 +68,6 @@
</tbody>
</table>
<div class="buttonHolder">
<button class="btn small btn-success" type="submit" name="action_primary">Make Primary</button>
<button class="btn small btn-primary" type="submit" name="action_send">Re-send Verification</button>
<button class="btn small btn-danger" type="submit" name="action_remove">Remove</button>
</div>
</fieldset>
</form>
{% else %}
@ -77,7 +76,7 @@
{% trans "You currently do not have any e-mail address set up. You should really add an e-mail address so you can receive notifications, reset your password, etc." %}
</p>
{% endif %}
<!--
<hr />
<h3>{% trans "Add E-mail" %}</h3>
@ -91,6 +90,7 @@
</button>
</form>
</div>
-->
</div>
<script type="text/javascript">