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

30 lines
749 B
Plaintext
Raw Normal View History

{% extends "base.html.j2" %}
{% from "admin/_breadcrumbs.html.j2" import breadcrumbs with context %}
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');
let adminUserList = new AdminUserList(adminUserListElement);
adminUserList.add({{ users|tojson }});
2020-10-23 08:17:14 +00:00
</script>
{% endblock scripts %}