render peer public key in form

This commit is contained in:
glyph 2022-08-11 08:59:17 +01:00
parent 7720ea49ac
commit 271665100a
1 changed files with 4 additions and 0 deletions

View File

@ -38,7 +38,11 @@
{% endif %}
<form class="flex-container" action="/subscribe" method="post">
<label for="public_key">Public Key</label>
{% if selected_peer %}
<input type="text" id="public_key" name="public_key" maxlength=53 value={{ selected_peer }}>
{% else %}
<input type="text" id="public_key" name="public_key" maxlength=53>
{% endif %}
<input type="submit" value="Subscribe">
<input type="submit" value="Unsubscribe" formaction="/unsubscribe">
</form>