Make the links and users list scrollable

closes #6
This commit is contained in:
2021-02-09 14:19:48 +01:00
parent 10933dd48b
commit a0a1065295
9 changed files with 195 additions and 181 deletions
-2
View File
@@ -21,9 +21,7 @@
</li> </li>
</ol> </ol>
</nav> </nav>
<div class="center">
{% block admin %} {% block admin %}
{% endblock %} {% endblock %}
</div>
</div> </div>
{% endblock %} {% endblock %}
+5 -3
View File
@@ -1,8 +1,9 @@
{% extends "admin.html" %} {% extends "admin.html" %}
{% block admin %} {% block admin %}
<h1>Link Editieren: {{ link.title }}</h1> <div class="center">
<form action="" method="POST"> <h1>Link Editieren: {{ link.title }}</h1>
<form action="" method="POST">
<div> <div>
<label for="title">Beschreibung:</label> <label for="title">Beschreibung:</label>
<input type="text" name="title" value="{{ link.title }}"> <input type="text" name="title" value="{{ link.title }}">
@@ -22,5 +23,6 @@
<input type="submit" value="Speichern"> <input type="submit" value="Speichern">
<a class="button" href="/admin/delete/link/{{link.code}}">Delete</a> <a class="button" href="/admin/delete/link/{{link.code}}">Delete</a>
</div> </div>
</form> </form>
</div>
{% endblock %} {% endblock %}
+6 -4
View File
@@ -1,8 +1,9 @@
{% extends "admin.html" %} {% extends "admin.html" %}
{% block admin %} {% block admin %}
<h1>Profil von {{user.username}}</h1> <div class="center">
<form action="" method="POST"> <h1>Profil von {{user.username}}</h1>
<form action="" method="POST">
<div> <div>
<label for="username">Benutzername:</label> <label for="username">Benutzername:</label>
<input type="text" name="username" value="{{ user.username }}"> <input type="text" name="username" value="{{ user.username }}">
@@ -16,6 +17,7 @@
<input type="password" name="password" placeholder="Leer lassen um nichts zu ändern"> <input type="password" name="password" placeholder="Leer lassen um nichts zu ändern">
</div> </div>
<input type="submit" value="Speichern"> <input type="submit" value="Speichern">
</form> </form>
<h2>&nbsp;</h2> <h2>&nbsp;</h2>
</div>
{% endblock %} {% endblock %}
+4 -2
View File
@@ -6,7 +6,8 @@
{% endblock %} {% endblock %}
{% block admin %} {% block admin %}
<table class="sortable"> <div class="scrollable">
<table class="sortable">
<tr> <tr>
<th> <th>
@@ -38,5 +39,6 @@
</td> </td>
</tr> </tr>
{% endfor %} {% endfor %}
</table> </table>
</div>
{% endblock %} {% endblock %}
+4 -2
View File
@@ -6,7 +6,8 @@
{% endblock %} {% endblock %}
{% block admin %} {% block admin %}
<table class="sortable"> <div class="scrollable">
<table class="sortable">
<tr> <tr>
<th> <th>
@@ -36,5 +37,6 @@
</td> </td>
</tr> </tr>
{% endfor %} {% endfor %}
</table> </table>
</div>
{% endblock %} {% endblock %}
+5 -3
View File
@@ -1,7 +1,8 @@
{% extends "admin.html" %} {% extends "admin.html" %}
{% block admin %} {% block admin %}
<form action="" method="POST"> <div class="center">
<form action="" method="POST">
<div> <div>
<label for="username">Benutzername:</label> <label for="username">Benutzername:</label>
<input type="text" name="username"> <input type="text" name="username">
@@ -15,6 +16,7 @@
<input type="password" name="password"> <input type="password" name="password">
</div> </div>
<input type="submit" value="Einladen"> <input type="submit" value="Einladen">
</form> </form>
<h2>&nbsp;</h2> <h2>&nbsp;</h2>
</div>
{% endblock %} {% endblock %}
+4 -2
View File
@@ -1,7 +1,8 @@
{% extends "admin.html" %} {% extends "admin.html" %}
{% block admin %} {% block admin %}
<form action="" method="POST"> <div class="center">
<form action="" method="POST">
<div> <div>
<label for="title">Beschreibung:</label> <label for="title">Beschreibung:</label>
<input type="text" name="title"> <input type="text" name="title">
@@ -15,5 +16,6 @@
<input type="text" name="code"> <input type="text" name="code">
</div> </div>
<input type="submit" value="Submit"> <input type="submit" value="Submit">
</form> </form>
</div>
{% endblock %} {% endblock %}
+6 -4
View File
@@ -1,8 +1,9 @@
{% extends "admin.html" %} {% extends "admin.html" %}
{% block admin %} {% block admin %}
<h1>{{ link.title }}</h1> <div class="center">
<table> <h1>{{ link.title }}</h1>
<table>
<tr> <tr>
<td>Beschreibung:</td> <td>Beschreibung:</td>
<td>{{ link.title }}</td> <td>{{ link.title }}</td>
@@ -28,8 +29,9 @@
</a> </a>
</td> </td>
</tr> </tr>
</table> </table>
<div class="actions"> <div class="actions">
<a class="button" href="/admin/edit/link/{{ link.code }}">Editieren</a> <a class="button" href="/admin/edit/link/{{ link.code }}">Editieren</a>
</div>
</div> </div>
{% endblock %} {% endblock %}
+7 -5
View File
@@ -1,8 +1,9 @@
{% extends "admin.html" %} {% extends "admin.html" %}
{% block admin %} {% block admin %}
<h1>Profil von {{user.username}}</h1> <div class="center">
<form action="" method="POST"> <h1>Profil von {{user.username}}</h1>
<form action="" method="POST">
<div> <div>
<label for="username">Benutzername:</label> <label for="username">Benutzername:</label>
<input type="text" name="username" value="{{ user.username }}" readonly> <input type="text" name="username" value="{{ user.username }}" readonly>
@@ -15,9 +16,10 @@
<label for="password">Passwort:</label> <label for="password">Passwort:</label>
<input type="password" name="password" value="verschlüsselt" readonly> <input type="password" name="password" value="verschlüsselt" readonly>
</div> </div>
</form> </form>
<div class="actions"> <div class="actions">
<a class="button" href="/admin/edit/profile/{{ user.id }}">Editieren</a> <a class="button" href="/admin/edit/profile/{{ user.id }}">Editieren</a>
</div>
<h2>&nbsp;</h2>
</div> </div>
<h2>&nbsp;</h2>
{% endblock %} {% endblock %}