Make the links and users list scrollable

closes #6
This commit is contained in:
Dietrich 2021-02-09 14:19:48 +01:00
parent 10933dd48b
commit a0a1065295
Signed by: dietrich
GPG Key ID: 9F3C20C0F85DF67C
9 changed files with 195 additions and 181 deletions

View File

@ -21,9 +21,7 @@
</li>
</ol>
</nav>
<div class="center">
{% block admin %}
{% endblock %}
</div>
</div>
{% endblock %}

View File

@ -1,8 +1,9 @@
{% extends "admin.html" %}
{% block admin %}
<h1>Link Editieren: {{ link.title }}</h1>
<form action="" method="POST">
<div class="center">
<h1>Link Editieren: {{ link.title }}</h1>
<form action="" method="POST">
<div>
<label for="title">Beschreibung:</label>
<input type="text" name="title" value="{{ link.title }}">
@ -22,5 +23,6 @@
<input type="submit" value="Speichern">
<a class="button" href="/admin/delete/link/{{link.code}}">Delete</a>
</div>
</form>
</form>
</div>
{% endblock %}

View File

@ -1,8 +1,9 @@
{% extends "admin.html" %}
{% block admin %}
<h1>Profil von {{user.username}}</h1>
<form action="" method="POST">
<div class="center">
<h1>Profil von {{user.username}}</h1>
<form action="" method="POST">
<div>
<label for="username">Benutzername:</label>
<input type="text" name="username" value="{{ user.username }}">
@ -16,6 +17,7 @@
<input type="password" name="password" placeholder="Leer lassen um nichts zu ändern">
</div>
<input type="submit" value="Speichern">
</form>
<h2>&nbsp;</h2>
</form>
<h2>&nbsp;</h2>
</div>
{% endblock %}

View File

@ -6,7 +6,8 @@
{% endblock %}
{% block admin %}
<table class="sortable">
<div class="scrollable">
<table class="sortable">
<tr>
<th>
@ -38,5 +39,6 @@
</td>
</tr>
{% endfor %}
</table>
</table>
</div>
{% endblock %}

View File

@ -6,7 +6,8 @@
{% endblock %}
{% block admin %}
<table class="sortable">
<div class="scrollable">
<table class="sortable">
<tr>
<th>
@ -36,5 +37,6 @@
</td>
</tr>
{% endfor %}
</table>
</table>
</div>
{% endblock %}

View File

@ -1,7 +1,8 @@
{% extends "admin.html" %}
{% block admin %}
<form action="" method="POST">
<div class="center">
<form action="" method="POST">
<div>
<label for="username">Benutzername:</label>
<input type="text" name="username">
@ -15,6 +16,7 @@
<input type="password" name="password">
</div>
<input type="submit" value="Einladen">
</form>
<h2>&nbsp;</h2>
</form>
<h2>&nbsp;</h2>
</div>
{% endblock %}

View File

@ -1,7 +1,8 @@
{% extends "admin.html" %}
{% block admin %}
<form action="" method="POST">
<div class="center">
<form action="" method="POST">
<div>
<label for="title">Beschreibung:</label>
<input type="text" name="title">
@ -15,5 +16,6 @@
<input type="text" name="code">
</div>
<input type="submit" value="Submit">
</form>
</form>
</div>
{% endblock %}

View File

@ -1,8 +1,9 @@
{% extends "admin.html" %}
{% block admin %}
<h1>{{ link.title }}</h1>
<table>
<div class="center">
<h1>{{ link.title }}</h1>
<table>
<tr>
<td>Beschreibung:</td>
<td>{{ link.title }}</td>
@ -28,8 +29,9 @@
</a>
</td>
</tr>
</table>
<div class="actions">
</table>
<div class="actions">
<a class="button" href="/admin/edit/link/{{ link.code }}">Editieren</a>
</div>
</div>
{% endblock %}

View File

@ -1,8 +1,9 @@
{% extends "admin.html" %}
{% block admin %}
<h1>Profil von {{user.username}}</h1>
<form action="" method="POST">
<div class="center">
<h1>Profil von {{user.username}}</h1>
<form action="" method="POST">
<div>
<label for="username">Benutzername:</label>
<input type="text" name="username" value="{{ user.username }}" readonly>
@ -15,9 +16,10 @@
<label for="password">Passwort:</label>
<input type="password" name="password" value="verschlüsselt" readonly>
</div>
</form>
<div class="actions">
</form>
<div class="actions">
<a class="button" href="/admin/edit/profile/{{ user.id }}">Editieren</a>
</div>
<h2>&nbsp;</h2>
</div>
<h2>&nbsp;</h2>
{% endblock %}