2021-05-28 13:51:23 +00:00
|
|
|
{% extends "base.html.j2" %}
|
|
|
|
{% from "admin/_breadcrumbs.html.j2" import breadcrumbs with context %}
|
2021-01-13 10:57:46 +00:00
|
|
|
|
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>
|
|
|
|
|
2022-09-02 11:07:30 +00:00
|
|
|
<div class="col s12">
|
2020-10-23 08:17:14 +00:00
|
|
|
<div class="card">
|
2021-01-13 10:57:46 +00:00
|
|
|
<div class="card-content">
|
2022-09-02 11:07:30 +00:00
|
|
|
<div class="user-list no-autoinit"></div>
|
2020-10-23 08:17:14 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-12-01 13:15:20 +00:00
|
|
|
{% endblock page_content %}
|
2020-10-23 08:17:14 +00:00
|
|
|
|
|
|
|
{% block scripts %}
|
|
|
|
{{ super() }}
|
2021-01-13 10:57:46 +00:00
|
|
|
<script>
|
2022-09-02 11:07:30 +00:00
|
|
|
for (let user of {{ json_users|tojson }}) {
|
|
|
|
if (user.id in app.data.users) {continue;}
|
|
|
|
app.data.users[user.id] = user;
|
|
|
|
}
|
|
|
|
let userList = new UserList(document.querySelector('.user-list'));
|
|
|
|
userList.init(app.data.users);
|
2020-10-23 08:17:14 +00:00
|
|
|
</script>
|
|
|
|
{% endblock scripts %}
|