2024-02-18 10:07:49 +01:00
|
|
|
{{define "page-content"}}
|
2024-02-24 09:54:25 +01:00
|
|
|
<h2>Editor</h2>
|
2024-02-18 10:07:49 +01:00
|
|
|
<form>
|
2024-02-24 09:54:25 +01:00
|
|
|
<input name="editor-title" placeholder="Titel" type="text" />
|
|
|
|
<textarea name="editor-desc" placeholder="Beschreibung"></textarea>
|
|
|
|
<textarea name="editor-text" placeholder="Artikel"></textarea>
|
2024-03-03 13:56:49 +01:00
|
|
|
{{range .}}
|
|
|
|
<input id="{{.}}" name="tags" type="checkbox" value="{{.}}" />
|
|
|
|
<label for="{{.}}">{{.}}</label>
|
|
|
|
{{end}}
|
2024-02-27 14:10:27 +01:00
|
|
|
<input type="submit" value="Senden" hx-post="/finish-article/" hx-target="#page-content" />
|
2024-02-18 10:07:49 +01:00
|
|
|
</form>
|
|
|
|
{{end}}
|
2024-02-18 10:48:37 +01:00
|
|
|
|
|
|
|
{{define "html-result"}}
|
|
|
|
{{.}}
|
|
|
|
{{end}}
|