add sorting functionality to the tables

closes #3
This commit is contained in:
2021-02-08 19:25:08 +01:00
parent a99e20d1e6
commit 258a05e83d
5 changed files with 537 additions and 13 deletions
+19 -2
View File
@@ -1,13 +1,30 @@
{% extends "admin.html" %}
{% block head2 %}
<script src="/static/sorttable.js"></script>
{% endblock %}
{% block admin %}
<table>
<table class="sortable">
<tr>
<th>
Kürzel
</th>
<th>
Ziellink
</th>
<th>
Benutzername
</th>
</tr>
{% for links_user in links_per_users %}
{% set l = links_user[0] %}
{% set u = links_user[1] %}
<tr>
<td>
<a href="/admin/view/link/{{l.code}}"><span>{{l.code}}:</span>
<a href="/admin/view/link/{{l.code}}"><span>{{l.code}}</span>
</a>
</td>
<td>