21 lines
1.1 KiB
Plaintext
21 lines
1.1 KiB
Plaintext
{%- extends "nav" -%}
|
|
{%- block card %}
|
|
<!-- SCUTTLEBUTT INVITE FORM -->
|
|
<div class="card center">
|
|
<form id="invites" class="center" action="/scuttlebutt/invites" method="post">
|
|
<div class="center" style="width: 80%;">
|
|
<label for="inviteUses" class="label-small font-gray" title="Number of times the invite code can be reused">USES</label>
|
|
<input type="number" id="inviteUses" name="uses" min="1" max="150" size="3" value="1">
|
|
{% if invite_code %}
|
|
<p class="card-text" style="margin-top: 1rem; user-select: all;" title="Invite code">{{ invite_code }}</p>
|
|
{% endif %}
|
|
</div>
|
|
<!-- BUTTONS -->
|
|
<input id="createInvite" class="button button-primary center" style="margin-top: 1rem;" type="submit" title="Create a new invite code" value="Create">
|
|
<a id="cancel" class="button button-secondary center" href="/scuttlebutt/peers" title="Cancel">Cancel</a>
|
|
</form>
|
|
<!-- FLASH MESSAGE -->
|
|
{% include "snippets/flash_message" %}
|
|
</div>
|
|
{%- endblock card -%}
|