Now everyone only sees their own rejected articles

This commit is contained in:
2024-03-17 09:15:37 +01:00
parent 450dd79e51
commit ceab7281e9
2 changed files with 25 additions and 3 deletions

View File

@ -1,9 +1,11 @@
{{define "page-content"}}
<form>
{{range .}}
{{range .RejectedArticles}}
{{if index $.MyIDs .ID}}
<input required id="{{.ID}}" name="id" type="radio" value="{{.ID}}" />
<label for="{{.ID}}">{{.Title}}</label>
{{end}}
{{end}}
<input type="submit" value="Auswählen" hx-post="/review-rejected-article/" hx-target="#page-content" />
</form>
<button hx-get="/hub/" hx-target="#page-content">Zurück</button>