33 lines
1.9 KiB
Plaintext
33 lines
1.9 KiB
Plaintext
{%- extends "nav" -%}
|
|
{%- block card %}
|
|
<!-- CONFIGURE ADMIN PAGE -->
|
|
<div class="card center">
|
|
<div class="capsule capsule-profile center-text font-normal border-info" style="font-family: var(--sans-serif); font-size: var(--font-size-6); margin-bottom: 1.5rem;">Administrators are identified and added by their Scuttlebutt public keys. These accounts will be sent private messages on Scuttlebutt when a password reset is requested.</div>
|
|
{% if not ssb_admin_ids %}
|
|
<div class="card-text">
|
|
There are no currently configured admins.
|
|
</div>
|
|
{% else %}
|
|
{% for admin in ssb_admin_ids %}
|
|
<form class="center" action="/settings/admin/delete" method="post">
|
|
<div class="center" style="display: flex; justify-content: space-between;">
|
|
<input type="hidden" name="ssb_id" value="{{ admin }}"/>
|
|
<p class="label-small label-ellipsis font-gray" style="user-select: all;">{{ admin }}</p>
|
|
<input style="width: 30%;" type="submit" class="button button-warning" value="Delete" title="Delete SSB administrator"/>
|
|
</div>
|
|
</form>
|
|
{% endfor %}
|
|
{% endif %}
|
|
<form id="addAdmin" class="center" style="margin-top: 2rem;" action="/settings/admin/add" method="post">
|
|
<div class="center" style="display: flex; flex-direction: column; margin-bottom: 2rem;" title="Public key (ID) of a desired administrator">
|
|
<label for="publicKey" class="label-small font-gray">PUBLIC KEY</label>
|
|
<input type="text" id="publicKey" name="ssb_id" placeholder="@xYz...=.ed25519" autofocus>
|
|
</div>
|
|
<!-- BUTTONS -->
|
|
<input class="button button-primary center" type="submit" title="Add SSB administrator" value="Add Admin">
|
|
<!-- FLASH MESSAGE -->
|
|
{% include "snippets/flash_message" %}
|
|
</form>
|
|
</div>
|
|
{%- endblock card -%}
|