Move Delete All button to below the list of current API Keys.

This commit is contained in:
george 2022-01-25 18:36:13 +00:00
parent 74713c2142
commit 285c1d10cf
No known key found for this signature in database
GPG Key ID: D30164B91DE6EEE3
1 changed files with 10 additions and 10 deletions

View File

@ -22,16 +22,6 @@
API Keys should be kept secret and treated like passwords, they can be used to gain access to your account.
</div>
{% if api_keys|length > 0 %}
<form method="post">
<input type="hidden" name="form-name" value="delete-all">
<span class="delete btn btn-danger delete-all-api-keys">
Delete All &nbsp; &nbsp; <i class="fe fe-trash"></i>
</span>
</form>
<br>
{% endif %}
<div class="row">
{% for api_key in api_keys %}
<div class="col-12 col-lg-6">
@ -85,6 +75,16 @@
{% endfor %}
</div>
{% if api_keys|length > 0 %}
<form method="post">
<input type="hidden" name="form-name" value="delete-all">
<span class="delete btn btn-danger delete-all-api-keys">
Delete All &nbsp; &nbsp; <i class="fe fe-trash"></i>
</span>
</form>
<br>
{% endif %}
<form method="post">
{{ new_api_key_form.csrf_token }}
<input type="hidden" name="form-name" value="create">