2026-03-29 16:09:30 +02:00
|
|
|
{{define "head"}}
|
|
|
|
|
<meta name="robots" content="noindex">
|
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
|
|
{{define "content"}}
|
|
|
|
|
<h1>Registreringsforespørsler</h1>
|
|
|
|
|
|
|
|
|
|
{{with .Data}}
|
|
|
|
|
{{if .Requests}}
|
2026-03-29 17:58:40 +02:00
|
|
|
<div class="table-responsive" role="region" aria-label="Forespørsler" tabindex="0">
|
2026-03-29 16:09:30 +02:00
|
|
|
<table role="grid">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th scope="col">Brukernavn</th>
|
|
|
|
|
<th scope="col">Sendt</th>
|
|
|
|
|
<th scope="col">Handlinger</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
{{range .Requests}}
|
|
|
|
|
<tr>
|
|
|
|
|
<td>{{.Username}}</td>
|
|
|
|
|
<td>{{.CreatedAt.Format "02.01.2006 15:04"}}</td>
|
|
|
|
|
<td>
|
|
|
|
|
<form method="POST" action="{{basePath}}/admin/signup-requests/{{.ID}}" class="inline-form">
|
|
|
|
|
<input type="hidden" name="csrf_token" value="{{$.CSRFToken}}">
|
|
|
|
|
<input type="hidden" name="action" value="approve">
|
|
|
|
|
<button type="submit" class="outline primary nav-button">Godkjenn</button>
|
|
|
|
|
</form>
|
|
|
|
|
<form method="POST" action="{{basePath}}/admin/signup-requests/{{.ID}}" class="inline-form">
|
|
|
|
|
<input type="hidden" name="csrf_token" value="{{$.CSRFToken}}">
|
|
|
|
|
<input type="hidden" name="action" value="reject">
|
|
|
|
|
<button type="submit" class="outline secondary nav-button"
|
|
|
|
|
onclick="return confirm('Avvis forespørselen fra «{{.Username}}»?')">Avvis</button>
|
|
|
|
|
</form>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{{end}}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
2026-03-29 17:58:40 +02:00
|
|
|
</div>
|
2026-03-29 16:09:30 +02:00
|
|
|
{{else}}
|
|
|
|
|
<p>Ingen ventende forespørsler.</p>
|
|
|
|
|
{{end}}
|
|
|
|
|
{{end}}
|
|
|
|
|
{{end}}
|