2020-05-08 16:45:53 +00:00
|
|
|
{% extends "administration/base.html" %}
|
|
|
|
|
|
|
|
{% load i18n %}
|
2020-05-15 08:54:31 +00:00
|
|
|
{% load passbook_utils %}
|
2020-05-08 16:45:53 +00:00
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<section class="pf-c-page__main-section pf-m-light">
|
|
|
|
<div class="pf-c-content">
|
|
|
|
<h1>
|
|
|
|
<i class="pf-icon pf-icon-process-automation"></i>
|
|
|
|
{% trans 'Flows' %}
|
|
|
|
</h1>
|
|
|
|
<p>{% trans "Flows describe a chain of Stages to authenticate, enroll or recover a user. Stages are chosen based on policies applied to them." %}</p>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
<section class="pf-c-page__main-section pf-m-no-padding-mobile">
|
|
|
|
<div class="pf-c-card">
|
2020-05-16 19:43:48 +00:00
|
|
|
{% if object_list %}
|
2020-06-09 11:40:03 +00:00
|
|
|
<div class="pf-c-toolbar">
|
|
|
|
<div class="pf-c-toolbar__content">
|
|
|
|
<div class="pf-c-toolbar__bulk-select">
|
|
|
|
<a href="{% url 'passbook_admin:flow-create' %}?back={{ request.get_full_path }}" class="pf-c-button pf-m-primary" type="button">{% trans 'Create' %}</a>
|
|
|
|
</div>
|
|
|
|
{% include 'partials/pagination.html' %}
|
2020-05-08 16:45:53 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<table class="pf-c-table pf-m-compact pf-m-grid-xl" role="grid">
|
|
|
|
<thead>
|
|
|
|
<tr role="row">
|
2020-06-29 09:12:30 +00:00
|
|
|
<th role="columnheader" scope="col">{% trans 'Identifier' %}</th>
|
2020-05-08 16:45:53 +00:00
|
|
|
<th role="columnheader" scope="col">{% trans 'Designation' %}</th>
|
2020-05-10 16:44:58 +00:00
|
|
|
<th role="columnheader" scope="col">{% trans 'Stages' %}</th>
|
2020-05-08 16:45:53 +00:00
|
|
|
<th role="columnheader" scope="col">{% trans 'Policies' %}</th>
|
|
|
|
<th role="cell"></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody role="rowgroup">
|
|
|
|
{% for flow in object_list %}
|
|
|
|
<tr role="row">
|
|
|
|
<th role="columnheader">
|
|
|
|
<div>
|
2020-06-29 09:12:30 +00:00
|
|
|
<div>{{ flow.slug }}</div>
|
|
|
|
<small>{{ flow.name }}</small>
|
2020-05-08 16:45:53 +00:00
|
|
|
</div>
|
|
|
|
</th>
|
|
|
|
<td role="cell">
|
|
|
|
<span>
|
|
|
|
{{ flow.designation }}
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
<td role="cell">
|
|
|
|
<span>
|
2020-05-10 16:44:58 +00:00
|
|
|
{{ flow.stages.all|length }}
|
2020-05-08 16:45:53 +00:00
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
<td role="cell">
|
|
|
|
<span>
|
|
|
|
{{ flow.policies.all|length }}
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<a class="pf-c-button pf-m-secondary" href="{% url 'passbook_admin:flow-update' pk=flow.pk %}?back={{ request.get_full_path }}">{% trans 'Edit' %}</a>
|
|
|
|
<a class="pf-c-button pf-m-danger" href="{% url 'passbook_admin:flow-delete' pk=flow.pk %}?back={{ request.get_full_path }}">{% trans 'Delete' %}</a>
|
2020-06-30 08:55:38 +00:00
|
|
|
<a class="pf-c-button pf-m-secondary" href="{% url 'passbook_admin:flow-execute' pk=flow.pk %}?next={{ request.get_full_path }}">{% trans 'Execute' %}</a>
|
2020-05-08 16:45:53 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<div class="pf-c-toolbar" id="page-layout-table-simple-toolbar-bottom">
|
|
|
|
{% include 'partials/pagination.html' %}
|
|
|
|
</div>
|
2020-05-16 19:43:48 +00:00
|
|
|
{% else %}
|
|
|
|
<div class="pf-c-empty-state">
|
2020-06-09 07:52:25 +00:00
|
|
|
<div class="pf-c-empty-state__content">
|
|
|
|
<i class="fas fa-cubes pf-c-empty-state__icon" aria-hidden="true"></i>
|
|
|
|
<h1 class="pf-c-title pf-m-lg">
|
|
|
|
{% trans 'No Flows.' %}
|
|
|
|
</h1>
|
|
|
|
<div class="pf-c-empty-state__body">
|
|
|
|
{% trans 'Currently no flows exist. Click the button below to create one.' %}
|
|
|
|
</div>
|
|
|
|
<a href="{% url 'passbook_admin:flow-create' %}?back={{ request.get_full_path }}" class="pf-c-button pf-m-primary" type="button">{% trans 'Create' %}</a>
|
2020-05-16 19:43:48 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2020-05-08 16:45:53 +00:00
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
{% endblock %}
|