Added partial support for tags

This commit is contained in:
2024-03-03 13:56:49 +01:00
parent e5bdc235b6
commit 6502aa7ec1
11 changed files with 283 additions and 81 deletions

View File

@ -4,6 +4,10 @@
<input name="editor-title" placeholder="Titel" type="text" />
<textarea name="editor-desc" placeholder="Beschreibung"></textarea>
<textarea name="editor-text" placeholder="Artikel"></textarea>
{{range .}}
<input id="{{.}}" name="tags" type="checkbox" value="{{.}}" />
<label for="{{.}}">{{.}}</label>
{{end}}
<input type="submit" value="Senden" hx-post="/finish-article/" hx-target="#page-content" />
</form>
{{end}}