cpolis/web/templates/show-all-users.html

25 lines
673 B
HTML
Raw Permalink Normal View History

2024-04-09 19:06:29 +02:00
{{define "page-content"}}
<h2>Alle Benutzer</h2>
<div class="flex flex-col gap-4">
2024-04-12 08:46:34 +02:00
{{range .Users}}
<button class="btn" hx-get="/{{$.Action}}/{{.ID}}" hx-target="#page-content">
2024-04-09 19:06:29 +02:00
<h1 class="font-bold text-2xl">
{{.UserName}}
({{if eq .Role 0}}
2024-04-12 08:46:34 +02:00
Administrator
2024-04-09 19:06:29 +02:00
{{else if eq .Role 1}}
Herausgeber
{{else if eq .Role 2}}
Redakteur
{{else}}
Autor
{{end}})
</h1>
<p>{{.FirstName}} {{.LastName}}</p>
</button>
{{end}}
<button class="action-btn" hx-get="/hub" hx-target="#page-content">Zurück</button>
</div>
{{end}}