2020-03-03 22:35:25 +00:00
|
|
|
{% extends "administration/base.html" %}
|
|
|
|
|
|
|
|
{% load i18n %}
|
2020-05-15 08:54:31 +00:00
|
|
|
{% load passbook_utils %}
|
2020-03-03 22:35:25 +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-key"></i>
|
|
|
|
{% trans 'Certificate-Key Pairs' %}
|
|
|
|
</h1>
|
|
|
|
<p>{% trans "Import certificates of external providers or create certificates to sign requests with." %}</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">
|
2020-10-03 17:32:01 +00:00
|
|
|
{% include 'partials/toolbar_search.html' %}
|
2020-06-09 11:40:03 +00:00
|
|
|
<div class="pf-c-toolbar__bulk-select">
|
|
|
|
<a href="{% url 'passbook_admin:certificatekeypair-create' %}?back={{ request.get_full_path }}" class="pf-c-button pf-m-primary" type="button">{% trans 'Create' %}</a>
|
|
|
|
</div>
|
|
|
|
{% include 'partials/pagination.html' %}
|
2020-03-03 22:35:25 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<table class="pf-c-table pf-m-compact pf-m-grid-xl" role="grid">
|
|
|
|
<thead>
|
|
|
|
<tr role="row">
|
|
|
|
<th role="columnheader" scope="col">{% trans 'Name' %}</th>
|
|
|
|
<th role="columnheader" scope="col">{% trans 'Private Key available' %}</th>
|
|
|
|
<th role="columnheader" scope="col">{% trans 'Fingerprint' %}</th>
|
|
|
|
<th role="columnheader" scope="col">{% trans 'Provider Type' %}</th>
|
|
|
|
<th role="cell"></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody role="rowgroup">
|
|
|
|
{% for kp in object_list %}
|
|
|
|
<tr role="row">
|
|
|
|
<th role="columnheader">
|
|
|
|
<div>
|
|
|
|
<div>{{ kp.name }}</div>
|
|
|
|
</div>
|
|
|
|
</th>
|
|
|
|
<td role="cell">
|
|
|
|
<span>
|
|
|
|
{% if kp.key_data is not None %}
|
|
|
|
{% trans 'Yes' %}
|
|
|
|
{% else %}
|
|
|
|
{% trans 'No' %}
|
|
|
|
{% endif %}
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
<td role="cell">
|
|
|
|
<span>
|
|
|
|
{{ kp.fingerprint }}
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<a class="pf-c-button pf-m-secondary" href="{% url 'passbook_admin:certificatekeypair-update' pk=kp.pk %}?back={{ request.get_full_path }}">{% trans 'Edit' %}</a>
|
|
|
|
<a class="pf-c-button pf-m-danger" href="{% url 'passbook_admin:certificatekeypair-delete' pk=kp.pk %}?back={{ request.get_full_path }}">{% trans 'Delete' %}</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2020-10-03 15:50:17 +00:00
|
|
|
<div class="pf-c-pagination pf-m-bottom">
|
2020-03-03 22:35:25 +00:00
|
|
|
{% include 'partials/pagination.html' %}
|
|
|
|
</div>
|
2020-05-16 19:43:48 +00:00
|
|
|
{% else %}
|
2020-10-03 17:32:01 +00:00
|
|
|
<div class="pf-c-toolbar">
|
|
|
|
<div class="pf-c-toolbar__content">
|
|
|
|
{% include 'partials/toolbar_search.html' %}
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-05-16 19:43:48 +00:00
|
|
|
<div class="pf-c-empty-state">
|
2020-06-09 07:52:25 +00:00
|
|
|
<div class="pf-c-empty-state__content">
|
2020-10-03 17:32:01 +00:00
|
|
|
<i class="pf-icon pf-icon-key pf-c-empty-state__icon" aria-hidden="true"></i>
|
2020-06-09 07:52:25 +00:00
|
|
|
<h1 class="pf-c-title pf-m-lg">
|
|
|
|
{% trans 'No Certificates.' %}
|
|
|
|
</h1>
|
|
|
|
<div class="pf-c-empty-state__body">
|
2020-10-03 17:32:01 +00:00
|
|
|
{% if request.GET.search != "" %}
|
|
|
|
{% trans "Your search query doesn't match any certificates." %}
|
|
|
|
{% else %}
|
2020-06-09 07:52:25 +00:00
|
|
|
{% trans 'Currently no certificates exist. Click the button below to create one.' %}
|
2020-10-03 17:32:01 +00:00
|
|
|
{% endif %}
|
2020-06-09 07:52:25 +00:00
|
|
|
</div>
|
|
|
|
<a href="{% url 'passbook_admin:certificatekeypair-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-03-03 22:35:25 +00:00
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
{% endblock %}
|