Reachieve basic functionality
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
{{define "page-content"}}
|
||||
<form>
|
||||
<input name="editor-title" type="text" value="{{.Title}}" />
|
||||
<textarea name="editor-desc">{{.Desc}}</textarea>
|
||||
<textarea name="editor-text">{{.Content}}</textarea>
|
||||
<input name="uuid" type="hidden" value="{{.UUID}}" />
|
||||
<h2>{{.Title}}</h2>
|
||||
<p>{{.Desc}}</p>
|
||||
<span>{{.Content}}</span>
|
||||
<input name="id" type="hidden" value="{{.ID}}" />
|
||||
<input type="submit" value="Veröffentlichen" hx-post="/publish-article/" hx-target="#page-content" />
|
||||
<input type="submit" value="Ablehnen" hx-post="/reject-article/" hx-target="#page-content" />
|
||||
</form>
|
||||
|
@ -1,8 +1,8 @@
|
||||
{{define "page-content"}}
|
||||
<form>
|
||||
{{range .}}
|
||||
<input required id="{{.UUID}}" name="uuid" type="radio" value="{{.UUID}}" />
|
||||
<label for="{{.UUID}}">{{.Title}}</label>
|
||||
<input required id="{{.ID}}" name="id" type="radio" value="{{.ID}}" />
|
||||
<label for="{{.ID}}">{{.Title}}</label>
|
||||
{{end}}
|
||||
<input type="submit" value="Auswählen" hx-post="/review-article/" hx-target="#page-content" />
|
||||
</form>
|
||||
|
Reference in New Issue
Block a user