2018-12-10 13:13:18 +00:00
|
|
|
{% extends "administration/base.html" %}
|
|
|
|
|
|
|
|
{% load i18n %}
|
|
|
|
{% load utils %}
|
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
{% title %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="container">
|
2018-12-10 13:21:42 +00:00
|
|
|
<h1>{% trans "Invitations" %}</h1>
|
2019-02-16 10:25:53 +00:00
|
|
|
<span>{% trans "Create Invitation Links which optionally force a username or expire on a set date." %}</span>
|
|
|
|
<hr>
|
2018-12-10 13:21:42 +00:00
|
|
|
<a href="{% url 'passbook_admin:invitation-create' %}" class="btn btn-primary">
|
2018-12-10 13:13:18 +00:00
|
|
|
{% trans 'Create...' %}
|
|
|
|
</a>
|
|
|
|
<hr>
|
|
|
|
<table class="table table-striped table-bordered">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2018-12-10 13:38:44 +00:00
|
|
|
<th>{% trans 'Expiry' %}</th>
|
|
|
|
<th>{% trans 'Link' %}</th>
|
2018-12-10 13:13:18 +00:00
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2018-12-10 13:21:42 +00:00
|
|
|
{% for invitation in object_list %}
|
2018-12-10 13:13:18 +00:00
|
|
|
<tr>
|
2018-12-10 13:38:44 +00:00
|
|
|
<td>{{ invitation.expires|default:"Never" }}</td>
|
2018-12-10 14:26:28 +00:00
|
|
|
<td><pre>{{ invitation.link }}</pre></td>
|
2018-12-10 13:13:18 +00:00
|
|
|
<td>
|
2018-12-10 13:21:42 +00:00
|
|
|
<a class="btn btn-default btn-sm" href="{% url 'passbook_admin:invitation-delete' pk=invitation.uuid %}?back={{ request.get_full_path }}">{% trans 'Delete' %}</a>
|
2018-12-10 13:13:18 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|