72 lines
3 KiB
HTML
72 lines
3 KiB
HTML
{% extends "administration/base.html" %}
|
|
|
|
{% load i18n %}
|
|
{% load utils %}
|
|
{% load admin_reflection %}
|
|
|
|
{% block title %}
|
|
{% title %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="container">
|
|
<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 }}&back={{ request.get_full_path }}">{{ name }}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
<hr>
|
|
<table class="table table-striped table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th></th>
|
|
<th>{% trans 'Name' %}</th>
|
|
<th>{% trans 'Type' %}</th>
|
|
<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>
|
|
<td>{{ provider.name }}</td>
|
|
<td>{{ provider|verbose_name }}</td>
|
|
<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 %}
|
|
{% get_htmls provider as htmls %}
|
|
{% for html in htmls %}
|
|
{{ html|safe }}
|
|
{% endfor %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% include 'partials/pagination.html' %}
|
|
</div>
|
|
{% endblock %}
|