This commit is contained in:
2023-10-16 11:03:39 +02:00
parent ac52768ca7
commit e7fd2db581
15 changed files with 270223 additions and 43 deletions

View File

@@ -0,0 +1,38 @@
{% 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 %}