2020-10-23 08:17:14 +00:00
|
|
|
{% extends "nopaque.html.j2" %}
|
|
|
|
|
2021-01-13 10:57:46 +00:00
|
|
|
{% block nav_content %}
|
|
|
|
{% include 'admin/_breadcrumbs.html.j2' %}
|
|
|
|
{% endblock nav_content %}
|
|
|
|
|
2020-10-23 08:17:14 +00:00
|
|
|
{% block page_content %}
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col s12">
|
2020-10-23 08:26:36 +00:00
|
|
|
<h1 id="title">{{ title }}</h1>
|
2020-10-23 08:17:14 +00:00
|
|
|
</div>
|
|
|
|
|
2021-01-13 10:57:46 +00:00
|
|
|
<div class="col s12" id="users">
|
2020-10-23 08:17:14 +00:00
|
|
|
<div class="card">
|
2021-01-13 10:57:46 +00:00
|
|
|
<div class="card-content">
|
2020-10-23 08:17:14 +00:00
|
|
|
<div class="input-field">
|
|
|
|
<i class="material-icons prefix">search</i>
|
|
|
|
<input id="search-user" class="search" type="text"></input>
|
|
|
|
<label for="search-user">Search user</label>
|
|
|
|
</div>
|
2021-01-13 10:57:46 +00:00
|
|
|
<table class="highlight ressource-list">
|
2020-10-23 08:17:14 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
2020-11-04 13:54:27 +00:00
|
|
|
<th class="sort" data-sort="id">Id</th>
|
2020-10-23 08:17:14 +00:00
|
|
|
<th class="sort" data-sort="username">Username</th>
|
|
|
|
<th class="sort" data-sort="email">Email</th>
|
2021-01-13 10:57:46 +00:00
|
|
|
<th class="sort" data-sort="last_seen">Last seen</th>
|
|
|
|
<th class="sort" data-sort="role">Role</th>
|
|
|
|
<th></th>
|
2020-10-23 08:17:14 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
2020-11-04 13:54:27 +00:00
|
|
|
<tbody class="list"></tbody>
|
2020-10-23 08:17:14 +00:00
|
|
|
</table>
|
2021-01-13 10:57:46 +00:00
|
|
|
<ul class="pagination"></ul>
|
2020-10-23 08:17:14 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block scripts %}
|
|
|
|
{{ super() }}
|
2021-01-13 10:57:46 +00:00
|
|
|
<script>
|
|
|
|
let userList = new UserList(document.querySelector('#users'), {page: 10});
|
|
|
|
userList.init({{ users|tojson }});
|
2020-10-23 08:17:14 +00:00
|
|
|
</script>
|
|
|
|
{% endblock scripts %}
|