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

55 lines
1.8 KiB
HTML
Raw Normal View History

2018-11-26 21:40:10 +00:00
{% extends "administration/base.html" %}
{% load i18n %}
{% load utils %}
2018-12-26 16:17:24 +00:00
{% load admin_reflection %}
2018-11-26 21:40:10 +00:00
{% block title %}
{% title %}
{% endblock %}
{% block content %}
<div class="container">
<h1>{% trans "Providers" %}</h1>
2019-02-16 10:25:53 +00:00
<span>{% trans "Authentication Protocol Provider, used as Protocol behind an Application." %}</span>
<hr>
2018-11-26 21:40:10 +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:provider-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>
</tr>
</thead>
<tbody>
{% for provider in object_list %}
<tr>
<td>{{ provider.name }}</td>
<td>{{ provider|fieldtype }}</td>
<td>
2018-12-09 20:04:57 +00:00
<a class="btn btn-default btn-sm" href="{% url 'passbook_admin:provider-update' pk=provider.pk %}?back={{ request.get_full_path }}">{% trans 'Edit' %}</a>
<a class="btn btn-default btn-sm" href="{% url 'passbook_admin:provider-delete' pk=provider.pk %}?back={{ request.get_full_path }}">{% trans 'Delete' %}</a>
2018-12-26 16:17:24 +00:00
{% get_links provider as links %}
{% for name, href in links.items %}
<a class="btn btn-default btn-sm" href="{{ href }}?back={{ request.get_full_path }}">{% trans name %}</a>
{% endfor %}
</td>
2018-11-26 21:40:10 +00:00
</tr>
{% endfor %}
</tbody>
</table>
</div>
2018-12-09 20:04:57 +00:00
{% endblock %}