Holger Frey
7 years ago
4 changed files with 136 additions and 1 deletions
@ -0,0 +1,66 @@
@@ -0,0 +1,66 @@
|
||||
{% extends "ordr2:templates/layout.jinja2" %} |
||||
{% import 'ordr2:templates/macros.jinja2' as macros with context %} |
||||
|
||||
{% block subtitle %} Account | Admin | Users | Confirm Delete {% endblock subtitle %} |
||||
|
||||
{% block content %} |
||||
<div class="content controls"> |
||||
|
||||
<div class="container-fluid"> |
||||
<div class="row-fluid"> |
||||
<div class="page-controls"> |
||||
<h1>Delete User{{ 's' if accounts|length > 1 }}</h1> |
||||
</div> |
||||
</div> |
||||
|
||||
<div class="row"> |
||||
<div class="span10"> |
||||
|
||||
<div class="action-header"> |
||||
<h3>The following user{{ 's' if accounts|length > 1 }} will be deleted:</h3> |
||||
</div> |
||||
|
||||
<form action="{{ request.resource_url(context, 'delete') }}" method="POST" class="action"> |
||||
<input type="hidden" name="csrf_token" value="{{get_csrf_token()}}"> |
||||
|
||||
<table class="table"> |
||||
<thead> |
||||
<th>Username</th> |
||||
<th>First Name</th> |
||||
<th>Last Name</th> |
||||
<th>Email</th> |
||||
<th>Role</th> |
||||
</thead> |
||||
|
||||
<tbody> |
||||
{% for account in accounts %} |
||||
<tr> |
||||
<td class="column-user"> |
||||
<input type="hidden" name="account" value="{{ account.id }}"> |
||||
{{ account.user_name }} |
||||
</td> |
||||
<td>{{ account.first_name }} </td> |
||||
<td>{{ account.last_name }} </td> |
||||
<td>{{ account.email }} </td> |
||||
<td>{{ account.role.value.capitalize() }} </td> |
||||
</tr> |
||||
{% endfor %} |
||||
</tbody> |
||||
</table> |
||||
|
||||
<fieldset class="form-actions"> |
||||
<div class="right"> |
||||
<button name="delete" type="submit" value="submit" class="btn btn-large btn-danger">Delete User{{ 's' if accounts|length > 1 }}</button> |
||||
<button name="cancel" type="submit" value="cancel" class="btn btn-large">Cancel</button> |
||||
</div> |
||||
</fieldset> |
||||
|
||||
</form> |
||||
|
||||
</div> |
||||
</div> |
||||
|
||||
</div> |
||||
|
||||
</div> |
||||
{% endblock content %} |
Reference in new issue