2018-11-16 08:10:35 +00:00
|
|
|
{% extends "administration/base.html" %}
|
|
|
|
|
2018-11-26 21:08:18 +00:00
|
|
|
{% load i18n %}
|
2020-05-15 08:54:31 +00:00
|
|
|
{% load passbook_utils %}
|
2018-11-16 08:10:35 +00:00
|
|
|
|
2018-11-26 21:08:18 +00:00
|
|
|
{% block content %}
|
2020-02-21 13:20:16 +00:00
|
|
|
<section class="pf-c-page__main-section pf-m-light">
|
|
|
|
<div class="pf-c-content">
|
|
|
|
<h1>
|
|
|
|
<i class="pf-icon pf-icon-applications"></i>
|
|
|
|
{% trans 'Applications' %}
|
|
|
|
</h1>
|
|
|
|
<p>{% trans "External Applications which use passbook as Identity-Provider, utilizing protocols like OAuth2 and SAML." %}</p>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
<section class="pf-c-page__main-section pf-m-no-padding-mobile">
|
|
|
|
<div class="pf-c-card">
|
|
|
|
<div class="pf-c-toolbar" id="page-layout-table-simple-toolbar-top">
|
2020-05-16 19:11:38 +00:00
|
|
|
<div class="pf-c-toolbar__bulk-select">
|
2020-02-21 13:20:16 +00:00
|
|
|
<a href="{% url 'passbook_admin:application-create' %}?back={{ request.get_full_path }}" class="pf-c-button pf-m-primary" type="button">{% trans 'Create' %}</a>
|
|
|
|
</div>
|
|
|
|
{% include 'partials/pagination.html' %}
|
|
|
|
</div>
|
2020-02-21 19:24:02 +00:00
|
|
|
<table class="pf-c-table pf-m-compact pf-m-grid-xl" role="grid">
|
2020-02-21 13:20:16 +00:00
|
|
|
<thead>
|
|
|
|
<tr role="row">
|
|
|
|
<th role="columnheader" scope="col">{% trans 'Name' %}</th>
|
|
|
|
<th role="columnheader" scope="col">{% trans 'Provider' %}</th>
|
|
|
|
<th role="columnheader" scope="col">{% trans 'Provider Type' %}</th>
|
|
|
|
<th role="cell"></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody role="rowgroup">
|
|
|
|
{% for application in object_list %}
|
|
|
|
<tr role="row">
|
|
|
|
<th role="columnheader">
|
|
|
|
<div>
|
|
|
|
<div>{{ application.name }}</div>
|
|
|
|
{% if application.meta_publisher %}
|
|
|
|
<small>{{ application.meta_publisher }}</small>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</th>
|
|
|
|
<td role="cell">
|
|
|
|
<span>
|
|
|
|
{{ application.get_provider }}
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
<td role="cell">
|
|
|
|
<span>
|
|
|
|
{{ application.get_provider|verbose_name }}
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<a class="pf-c-button pf-m-secondary" href="{% url 'passbook_admin:application-update' pk=application.pk %}?back={{ request.get_full_path }}">{% trans 'Edit' %}</a>
|
|
|
|
<a class="pf-c-button pf-m-danger" href="{% url 'passbook_admin:application-delete' pk=application.pk %}?back={{ request.get_full_path }}">{% trans 'Delete' %}</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<div class="pf-c-toolbar" id="page-layout-table-simple-toolbar-bottom">
|
|
|
|
{% include 'partials/pagination.html' %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
2018-12-10 09:50:19 +00:00
|
|
|
{% endblock %}
|