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/source/list.html

42 lines
1.4 KiB
HTML
Raw Normal View History

2018-11-26 21:09:04 +00:00
{% extends "administration/base.html" %}
2018-11-16 08:10:35 +00:00
{% load i18n %}
2018-11-26 21:09:04 +00:00
{% load utils %}
2018-11-16 08:10:35 +00:00
2018-11-26 21:09:04 +00:00
{% block content %}
<div class="container">
2018-11-26 21:29:59 +00:00
<h1>{% trans "Sources" %}</h1>
2018-11-26 21:09:04 +00:00
<div class="dropdown">
<button class="btn btn-primary dropdown-toggle" type="button" id="createDropdown" data-toggle="dropdown">
{% trans 'Create...' %}
<span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu" aria-labelledby="createDropdown">
{% for type, name in types.items %}
<li role="presentation"><a role="menuitem" tabindex="-1" href="{% url 'passbook_admin:source-create' %}?type={{ type }}">{{ name }}</a></li>
{% endfor %}
</ul>
</div>
<hr>
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>{% trans 'Name' %}</th>
<th>{% trans 'Class' %}</th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
{% for source in object_list %}
<tr>
<td>{{ source.name }}</td>
<td>{{ source.cast|fieldtype }}</td>
2018-11-26 21:29:59 +00:00
<td><a href="{% url 'passbook_admin:source-update' pk=source.uuid %}?back={{ request.get_full_path }}">{% trans 'Edit' %}</a></td>
<td><a href="{% url 'passbook_admin:source-delete' pk=source.uuid %}?back={{ request.get_full_path }}">{% trans 'Delete' %}</a></td>
2018-11-26 21:09:04 +00:00
</tr>
{% endfor %}
</tbody>
</table>
2018-11-16 08:10:35 +00:00
</div>
{% endblock %}