Refined look of rejected and unpublished articles

This commit is contained in:
Jason Streifling 2024-04-01 14:38:31 +02:00
parent ae90f693f6
commit 7fc115bcc3
2 changed files with 12 additions and 6 deletions

View File

@ -1,11 +1,14 @@
{{define "page-content"}}
<form>
<div>
<div class="flex flex-col gap-4">
{{range .RejectedArticles}}
<div>
<div class="border px-2 py-1 rounded-md flex gap-2">
{{if index $.MyIDs .ID}}
<input required id="{{.ID}}" name="id" type="radio" value="{{.ID}}" />
<label for="{{.ID}}">{{.Title}}</label>
<label class="w-full" for="{{.ID}}">
<h1 class="font-bold text-2xl">{{.Title}}</h1>
<p>{{.Description}}</p>
</label>
{{end}}
</div>
{{end}}

View File

@ -1,10 +1,13 @@
{{define "page-content"}}
<form>
<div class="grid grid-cols-4 gap-4">
<div class="flex flex-col gap-4">
{{range .}}
<div>
<div class="border px-2 py-1 rounded-md flex gap-2">
<input required id="{{.ID}}" name="id" type="radio" value="{{.ID}}" />
<label for="{{.ID}}">{{.Title}}</label>
<label class="w-full" for="{{.ID}}">
<h1 class="font-bold text-2xl">{{.Title}}</h1>
<p>{{.Description}}</p>
</label>
</div>
{{end}}
</div>