A website for producing interactive charts without writing a single line of code. Built with Common Lisp and Python.
https://charts.craigoates.net
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
87 lines
1.9 KiB
87 lines
1.9 KiB
{% extends "layouts/base.html" %} |
|
{% block title %}Craig Oates: Users{% endblock %} |
|
|
|
{% block content %} |
|
|
|
<div class="logged-in-options"> |
|
<a class="ui-link-add" href="/user/add">Add</a> |
|
</div> |
|
|
|
<div class="dashboard"> |
|
<section> |
|
<h1><span>{{user-count}}</span> Users</h1> |
|
|
|
<table class="summary-dashboard-table"> |
|
<thead> |
|
<tr> |
|
<th>Total</th> |
|
<th>Category</th> |
|
</tr> |
|
</thead> |
|
<tbody> |
|
{% for item in categories %} |
|
<tr> |
|
<td>{{item.col-totals}}</td> |
|
<td> |
|
{% if item.administrator == 0 %} |
|
Basic |
|
{% else %} |
|
Administrator |
|
{% endif %} |
|
</td> |
|
</tr> |
|
{% endfor %} |
|
|
|
</tbody> |
|
</table> |
|
|
|
<table class="user-manage-table"> |
|
<thead> |
|
<tr> |
|
<th>Display Name</th> |
|
<th>Username</th> |
|
<th>Account Type</th> |
|
<th>Created</th> |
|
<th>Updated</th> |
|
<th colspan="2">Options</th> |
|
<tr> |
|
</thead> |
|
<tbody> |
|
{% for user in users %} |
|
<tr> |
|
<td>{{user.display-name}}</td> |
|
<td>{{user.username}}</td> |
|
<td> |
|
{% if user.administrator == 0 %} |
|
Basic |
|
{% else %} |
|
Administrator |
|
{% endif %} |
|
</td> |
|
<td>{{user.created-at |
|
| date: ((:year 4)"/"(:month 2)"/"(:day 2)" "(:hour 2)":"(:min 2))}} |
|
</td> |
|
<td> |
|
{% ifnotequal user.updated-at null %} |
|
{{user.updated-at |
|
| date: ((:year 4)"/"(:month 2)"/"(:day 2)" "(:hour 2)":"(:min 2))}} |
|
{% else %} |
|
<span class="ui-muted-text">N/A</span> |
|
{% endifnotequal %} |
|
</td> |
|
<td><a class="ui-link-edit" href="/user/edit/{{user.username}}">Edit</a></td> |
|
<td> |
|
<form action="/user" method="post"> |
|
<input type="hidden" name="AUTHENTICITY-TOKEN" value="{{token}}"> |
|
<input type="hidden" name="METHOD" value="delete-user"> |
|
<input type="hidden" name="USERNAME" value="{{user.username}}"> |
|
<input class="ui-button-danger" type="submit" value="Delete"> |
|
</form> |
|
<td> |
|
</tr> |
|
{% endfor %} |
|
</tbody> |
|
</table> |
|
</div> |
|
|
|
{% endblock %}
|
|
|