nopaque/app/templates/admin/users.html.j2

35 lines
799 B
Plaintext
Raw Normal View History

{% extends "base.html.j2" %}
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">
<div class="card-content">
2023-01-09 07:45:47 +00:00
<div class="admin-user-list no-autoinit" id="admin-user-list"></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() }}
<script>
2023-01-09 07:45:47 +00:00
let adminUserListElement = document.querySelector('#admin-user-list');
2023-10-11 14:20:17 +00:00
let adminUserList = new ResourceLists.AdminUserList(adminUserListElement);
2023-03-23 16:42:51 +00:00
adminUserList.add(
[
{% for user in users %}
{{ user.to_json_serializeable(backrefs=True)|tojson }},
2023-03-23 16:42:51 +00:00
{% endfor %}
]
);
2020-10-23 08:17:14 +00:00
</script>
{% endblock scripts %}