You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.1 KiB
HTML
38 lines
1.1 KiB
HTML
1 year ago
|
{% extends "base.html" %}
|
||
|
{% load static %}
|
||
|
|
||
|
{% block content %}
|
||
|
<div class="container">
|
||
|
<h2>Trusted Authorities</h2>
|
||
|
<table class="table table-striped">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>Name</th>
|
||
|
<th>Public Key</th>
|
||
|
<th>Action</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
{% for authority, hash in authorities_with_hashes %}
|
||
|
<tr>
|
||
|
<td>{{ authority.name }}</td>
|
||
|
<td>{{ hash }}</td>
|
||
|
<td>
|
||
|
<form action="{% url 'abac:delete_authority' authority.id %}" method="post">
|
||
|
{% csrf_token %}
|
||
|
<button type="submit" class="btn btn-danger">Delete</button>
|
||
|
</form>
|
||
|
</td>
|
||
|
</tr>
|
||
|
{% endfor %}
|
||
|
</tbody>
|
||
|
</table>
|
||
|
|
||
|
<h3>Add New Authority</h3>
|
||
|
<form method="post">
|
||
|
{% csrf_token %}
|
||
|
{{ form.as_p }}
|
||
|
<button type="submit" class="btn btn-primary">Add</button>
|
||
|
</form>
|
||
|
</div>
|
||
|
{% endblock %}
|