77 lines
789 B
HTML
77 lines
789 B
HTML
<!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>
|