17 lines
724 B
HTML
17 lines
724 B
HTML
{{define "page-content"}}
|
|
<h2>Editor</h2>
|
|
<form>
|
|
<input name="article-title" placeholder="Titel" type="text" value="{{.Article.Title}}" />
|
|
<textarea name="article-description" placeholder="Beschreibung">{{.Article.Description}}</textarea>
|
|
<textarea name="article-content" placeholder="Artikel">{{.Article.Content}}</textarea>
|
|
<input name="article-id" type="hidden" value="{{.Article.ID}}" />
|
|
|
|
{{range .Tags}}
|
|
<input id="tag-{{.Name}}" name="tags" type="checkbox" value="{{.ID}}" {{if index $.Selected .ID}}checked{{end}} />
|
|
<label for="tag-{{.Name}}">{{.Name}}</label>
|
|
{{end}}
|
|
|
|
<input type="submit" value="Senden" hx-post="/resubmit-article/" hx-target="#page-content" />
|
|
</form>
|
|
{{end}}
|