cpolis/web/templates/to-be-published.html

43 lines
1.3 KiB
HTML
Raw Normal View History

2024-03-01 11:30:31 +01:00
{{define "page-content"}}
2024-04-07 18:57:03 +02:00
<h2>Artikel veröffentlichen</h2>
<div>
<span>Titel</span>
<div class="border border-slate-200 dark:border-slate-800 mb-3 px-2 py-2 rounded-md w-full">
{{.Article.Title}}
</div>
<span>Beschreibung</span>
<div class="border border-slate-200 dark:border-slate-800 mb-3 px-2 py-2 rounded-md w-full">
{{.Article.Description}}
</div>
<span>Artikel</span>
<div class="border border-slate-200 dark:border-slate-800 mb-3 px-2 py-2 rounded-md w-full">
<div class="prose">
{{.Content}}
</div>
</div>
<span>Tags</span>
<div class="border border-slate-200 dark:border-slate-800 mb-3 px-2 py-2 rounded-md w-full">
{{if .Article.IsInIssue}}
<span>Orient Express</span>
<br>
{{end}}
2024-03-28 08:41:38 +01:00
{{range .Tags}}
<span>{{.Name}}</span>
<br>
2024-03-28 08:41:38 +01:00
{{end}}
</div>
2024-09-10 19:43:01 +02:00
<div class="btn-area-3">
<input class="action-btn" type="submit" value="Veröffentlichen" hx-get="/article/publish/{{.Article.ID}}"
hx-target="#page-content" />
<input class="btn" type="submit" value="Ablehnen" hx-get="/article/reject/{{.Article.ID}}"
2024-04-01 14:22:59 +02:00
hx-target="#page-content" />
<button class="btn" hx-get="/hub" hx-target="#page-content">Zurück</button>
2024-04-01 14:22:59 +02:00
</div>
</div>
2024-03-01 11:30:31 +01:00
{{end}}