ShareDAV/templates/users.html

34 lines
941 B
HTML

{{ define "page-styles"}}
<style>
table {
border-spacing: .5em;
}
</style>
{{ end }}
{{ define "page-content" }}
<table>
<thead>
<tr>
<td>User</td>
<td>Role</td>
<td>Action</td>
</tr>
</thead>
<tbody>
{{ range $user := .Users }}
<tr id="user-{{ $user.Username }}">
<td>{{ $user.Username }}</td>
<td>{{ $user.Role }}</td>
<td>
<form style="display: inline-block;" action="delete-user" method="post">
<input type="hidden" name="user" value="{{ $user.Username }}"/>
<input type="submit" value="Delete" class="delete"/>
</form>
</td>
</tr>{{ end }}
</tbody>
</table>
<a href="create-user" class="create-user">Create User</a>
{{ end }}