forked from mirrors/bookwyrm
Moves create invite form to top of invite page
This commit is contained in:
parent
d3381d7a79
commit
384187a263
1 changed files with 23 additions and 23 deletions
|
@ -2,29 +2,6 @@
|
||||||
{% block header %}Invites{% endblock %}
|
{% block header %}Invites{% endblock %}
|
||||||
{% load humanize %}
|
{% load humanize %}
|
||||||
{% block panel %}
|
{% block panel %}
|
||||||
<section class="block">
|
|
||||||
<table class="table is-striped">
|
|
||||||
<tr>
|
|
||||||
<th>Link</th>
|
|
||||||
<th>Expires</th>
|
|
||||||
<th>Max uses</th>
|
|
||||||
<th>Times used</th>
|
|
||||||
</tr>
|
|
||||||
{% if not invites %}
|
|
||||||
<tr><td colspan="4">No active invites</td></tr>
|
|
||||||
{% endif %}
|
|
||||||
{% for invite in invites %}
|
|
||||||
<tr>
|
|
||||||
<td><a href="{{ invite.link }}">{{ invite.link }}</td>
|
|
||||||
<td>{{ invite.expiry|naturaltime }}</td>
|
|
||||||
<td>{{ invite.use_limit }}</td>
|
|
||||||
<td>{{ invite.times_used }}</td>
|
|
||||||
</tr>
|
|
||||||
{% endfor %}
|
|
||||||
</table>
|
|
||||||
{% include 'snippets/pagination.html' with page=invites path=request.path %}
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<section class="block">
|
<section class="block">
|
||||||
<h2 class="title is-4">Generate New Invite</h2>
|
<h2 class="title is-4">Generate New Invite</h2>
|
||||||
|
|
||||||
|
@ -48,4 +25,27 @@
|
||||||
<button class="button is-primary" type="submit">Create Invite</button>
|
<button class="button is-primary" type="submit">Create Invite</button>
|
||||||
</form>
|
</form>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
<section class="block">
|
||||||
|
<table class="table is-striped">
|
||||||
|
<tr>
|
||||||
|
<th>Link</th>
|
||||||
|
<th>Expires</th>
|
||||||
|
<th>Max uses</th>
|
||||||
|
<th>Times used</th>
|
||||||
|
</tr>
|
||||||
|
{% if not invites %}
|
||||||
|
<tr><td colspan="4">No active invites</td></tr>
|
||||||
|
{% endif %}
|
||||||
|
{% for invite in invites %}
|
||||||
|
<tr>
|
||||||
|
<td><a href="{{ invite.link }}">{{ invite.link }}</td>
|
||||||
|
<td>{{ invite.expiry|naturaltime }}</td>
|
||||||
|
<td>{{ invite.use_limit }}</td>
|
||||||
|
<td>{{ invite.times_used }}</td>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
</table>
|
||||||
|
{% include 'snippets/pagination.html' with page=invites path=request.path %}
|
||||||
|
</section>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in a new issue