Articles and tags are now inserted into DB correctly
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user