49 lines
1.6 KiB
HTML
49 lines
1.6 KiB
HTML
{% extends 'base.html' %}
|
|
{% block header %}
|
|
{% block title %}<h1>Token Übersicht</h1>{% endblock %}
|
|
|
|
<script src="../static/js/jquery-3.6.0.js"></script>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<table class="table">
|
|
<thead>
|
|
<td>Token</td>
|
|
<td>NutzerIn</td>
|
|
<td>Organisation</td>
|
|
<td>E-Mail</td>
|
|
<td>Gültig bis</td>
|
|
<td>Aktionen</td>
|
|
</thead>
|
|
<tbody>
|
|
{% for t, data in assigned_tokens.items() %}
|
|
<tr>
|
|
<td>{{ t }}</td>
|
|
{% for field in ['name', 'organization', 'email', 'valid_thru'] %}
|
|
<td>{{ data[field] if data[field] }}</td>
|
|
{% endfor %}
|
|
<td>
|
|
<a href="{{ url_for('edit_token', token=t) }}"><img src="static/edit.png" title="Editieren" alt="Edit"></a>
|
|
<a href="{{ url_for('deactivate_token', token=t) }}"><img src="static/stop.png" title="Deaktivieren" alt="Deactivate"></a>
|
|
<a href="{{ url_for('delete_token', token=t) }}"><img src="static/delete.png" title="Löschen" alt="Delete"></a>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
{% for t, data in inactive_tokens.items() %}
|
|
<tr style="background-color: lightgrey">
|
|
<td>{{ t }}</td>
|
|
{% for field in ['name', 'organization', 'email', 'valid_thru'] %}
|
|
<td>{{ data[field] if data[field] }}</td>
|
|
{% endfor %}
|
|
<td>
|
|
<a href="{{ url_for('edit_token', token=t) }}"><img src="static/edit.png" title="Editieren" alt="Edit"></a>
|
|
<a href="{{ url_for('delete_token', token=t) }}"><img src="static/delete.png" title="Löschen" alt="Delete"></a>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
<form action="{{ url_for('backup_tokens') }}" method="get">
|
|
<input type="submit" value="Token Daten sichern">
|
|
</form>
|
|
{% endblock %} |