49 lines
966 B
HTML
49 lines
966 B
HTML
{{template "header" .}}
|
|||
|
|
{{template "navbar" .}}
|
||
|
|
|
||
|
|
<div class="container">
|
||
|
|
<h2>Invites</h2>
|
||
|
|
<div class="row">
|
||
|
|
<div class="col-6">
|
||
|
|
<div class="card">
|
||
|
|
<div class="card-header">Invites</div>
|
||
|
|
<div class="card-b">
|
||
|
|
{{template "alarm" .}}
|
||
|
|
|
||
|
|
<table class="table">
|
||
|
|
<thead>
|
||
|
|
<tr><th>Token</th><th>Uses</th><th>Expires At</th><th>Created At</th><th></th></tr>
|
||
|
|
</thead>
|
||
|
|
<tbody>
|
||
|
|
{{range .Invites}}
|
||
|
|
<tr>
|
||
|
|
<td>{{.Token}}</td>
|
||
|
|
<td>{{.Uses}}</td>
|
||
|
|
<td>{{.ExpiresAt.Format "2006-01-02 15:04"}}</td>
|
||
|
|
<td>{{.CreatedAt.Format "2006-01-02 15:04"}}</td>
|
||
|
|
<td>
|
||
|
|
<form method="post" action="/invites/delete">
|
||
|
|
{{template "csrf" $}}
|
||
|
|
<input type="hidden" name="token" value="{{.Token}}">
|
||
|
|
<button type="submit">Delete</button>
|
||
|
|
</form>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
{{end}}
|
||
|
|
</tbody>
|
||
|
|
</table>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="col-6">
|
||
|
|
<div class="card">
|
||
|
|
<div class="card-header">Actions</div>
|
||
|
|
<div class="card-b">
|
||
|
|
<p><a href="/invites/create">Create Invite</a></p>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
{{template "footer" .}}
|