WebApp-Kategorien bearbeiten

This commit is contained in:
hubobel 2026-06-20 16:27:02 +02:00
parent 9205d11802
commit f1e1c247ec
3 changed files with 175 additions and 0 deletions

View file

@ -0,0 +1,77 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<title>{{ category }}</title>
</head>
<body>
<h1>{{ category }}</h1>
<a href="/categories">
Zurück
</a>
<hr>
<h2>Neues Schlüsselwort</h2>
<form
action="/categories/add_word/{{ category }}"
method="post">
```
<input
type="text"
name="word"
required>
<button type="submit">
Hinzufügen
</button>
```
</form>
<hr>
<h2>Schlüsselwörter</h2>
<table border="1" cellpadding="5">
<tr>
<th>Wort</th>
<th>Aktion</th>
</tr>
{% for word in words %}
<tr>
<td>
{{ word }}
</td>
<td>
<a
href="/categories/delete_word/{{ category }}/{{ word }}"
onclick="return confirm('Wort wirklich löschen?')">
```
Löschen
```
</a>
</td>
</tr>
{% endfor %}
</table>
</body>
</html>