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

67 lines
2.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">
2019-02-25 12:31:11 +00:00
<h1><span class="pficon-integration"></span> {% trans "Providers" %}</h1>
<span>{% trans "Authentication Protocol Provider, used as Protocol behind an Application." %}</span>
<hr>
<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>
2018-12-26 16:17:24 +00:00
{% endfor %}
2019-02-25 12:31:11 +00:00
</ul>
</div>
<hr>
<table class="table table-striped table-bordered">
<thead>
<tr>
<th></th>
2019-02-25 12:31:11 +00:00
<th>{% trans 'Name' %}</th>
<th>{% trans 'Type' %}</th>
2019-02-25 12:31:11 +00:00
<th></th>
</tr>
</thead>
<tbody>
{% for provider in object_list %}
<tr {% if not provider.application %} class="warning" {% endif %}>
<th>
{% if not provider.application %}
<span class="pficon-warning-triangle-o" data-toggle="tooltip" data-placement="right" title="{% trans 'Warning: Provider has no application assigned.' %}"></span>
{% else %}
<span class="pficon-ok" data-toggle="tooltip" data-placement="right" title="{% blocktrans with app=provider.application %}Assigned to Application {{ app }}{% endblocktrans %}"></span>
{% endif %}
</th>
2019-02-25 12:31:11 +00:00
<td>{{ provider.name }}</td>
<td>{{ provider|verbose_name }}</td>
2019-02-25 12:31:11 +00:00
<td>
<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>
{% 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>
</tr>
{% endfor %}
</tbody>
</table>
2018-11-26 21:40:10 +00:00
</div>
2018-12-09 20:04:57 +00:00
{% endblock %}