This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
authentik/passbook/admin/templates/administration/invitation/list.html

39 lines
984 B
HTML
Raw Normal View History

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>
<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>
<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>
<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 %}