41 lines
1.1 KiB
HTML
41 lines
1.1 KiB
HTML
{{define "tokens.html"}}
|
|
<!doctype html>
|
|
<html lang="de">
|
|
{{template "partials_head" .}}
|
|
<body>
|
|
{{template "partials_nav" .}}
|
|
<main class="page">
|
|
<h1>Tokens</h1>
|
|
{{template "partials_flash" .}}
|
|
|
|
<section class="card">
|
|
<h2>Token erstellen</h2>
|
|
<form method="post" action="{{abs "/tokens"}}">
|
|
<input type="hidden" name="csrf" value="{{.CSRF}}">
|
|
<input type="hidden" name="action" value="add">
|
|
<div class="grid">
|
|
<div>
|
|
<label>User</label>
|
|
<select name="username" required>
|
|
{{range .Users}}<option value="{{.Username}}">{{.Username}}</option>{{end}}
|
|
</select>
|
|
</div>
|
|
<div>
|
|
<label>Label (optional)</label>
|
|
<input name="label">
|
|
</div>
|
|
<div>
|
|
<label>Expires (optional)</label>
|
|
<input name="expires" placeholder="120d, 24h, ...">
|
|
</div>
|
|
</div>
|
|
<button class="btn" type="submit">Create</button>
|
|
</form>
|
|
<div class="hint">Token wird als Flash angezeigt, danach nicht mehr.</div>
|
|
</section>
|
|
</main>
|
|
{{template "partials_footer" .}}
|
|
</body>
|
|
</html>
|
|
{{end}}
|