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-03-10 15:03:46 +01:00
|
|
|
<input name="article-title" placeholder="Titel" type="text" />
|
|
|
|
<textarea name="article-description" placeholder="Beschreibung"></textarea>
|
|
|
|
<textarea name="article-content" placeholder="Artikel"></textarea>
|
2024-03-03 13:56:49 +01:00
|
|
|
{{range .}}
|
2024-03-07 15:31:00 +01:00
|
|
|
<input id="{{.Name}}" name="tags" type="checkbox" value="{{.ID}}" />
|
|
|
|
<label for="{{.Name}}">{{.Name}}</label>
|
2024-03-03 13:56:49 +01:00
|
|
|
{{end}}
|
2024-03-10 15:03:46 +01:00
|
|
|
<input type="submit" value="Senden" hx-post="/submit-article/" hx-target="#page-content" />
|
2024-02-18 10:07:49 +01:00
|
|
|
</form>
|
|
|
|
{{end}}
|