27 lines
1.7 KiB
Plaintext
27 lines
1.7 KiB
Plaintext
{%- extends "nav" -%}
|
|
{%- block card %}
|
|
{# ASSIGN VARIABLES #}
|
|
{# ---------------- #}
|
|
<!-- PEER LOOKUP FORM -->
|
|
<div class="card center">
|
|
<form id="sbotConfig" class="center" action="/scuttlebutt/peers/lookup" method="post">
|
|
<div class="center" style="display: flex; flex-direction: column; margin-bottom: 2rem;" title="Public key (ID) of a peer">
|
|
<label for="publicKey" class="label-small font-gray">PUBLIC KEY</label>
|
|
<input type="text" id="publicKey" name="public_key" placeholder="@xYz...=.sha256">
|
|
</div>
|
|
<!-- RELATIONSHIP CHECKBOXES -->
|
|
<div class="center">
|
|
<input type="checkbox" id="following" style="margin-bottom: 1rem;" name="following"{% if is_following and is_following == true %} checked{% endif %}>
|
|
<label class="font-normal" for="following" title="Follow or unfollow the peer represented by the public key above">Following</label><br>
|
|
<input type="checkbox" id="blocking" name="blocking"{% if is_blocking and is_blocking == true %} checked{% endif %}>
|
|
<label class="font-normal" for="blocking" title="Block or unblock the peer represented by the public key above">Blocking</label><br>
|
|
</div>
|
|
<!-- BUTTONS -->
|
|
<input id="lookupRelationship" class="button button-primary center" style="margin-top: 2rem;" type="submit" title="Lookup relationship" value="Lookup">
|
|
<input id="setRelationship" class="button button-primary center" type="submit" title="Publish relationship" value="Publish">
|
|
</form>
|
|
<!-- FLASH MESSAGE -->
|
|
{% include "snippets/flash_message" %}
|
|
</div>
|
|
{%- endblock card -%}
|