Articles and tags are now inserted into DB correctly

This commit is contained in:
2024-03-07 15:31:00 +01:00
parent 582f25bec7
commit 4d65be195b
8 changed files with 79 additions and 43 deletions

View File

@ -5,8 +5,8 @@
<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>
<input id="{{.Name}}" name="tags" type="checkbox" value="{{.ID}}" />
<label for="{{.Name}}">{{.Name}}</label>
{{end}}
<input type="submit" value="Senden" hx-post="/finish-article/" hx-target="#page-content" />
</form>