dash-stack/dash/templates/admin/list_users.html

81 lines
2.1 KiB
HTML

{% extends "adminlte/base.html" %}
{% import "adminlte/layout.html" as layout with context %}
{% import "adminlte/widgets.html" as widgets with context %}
{% block navbar %}
{% include "navbar.html" %}
{%- endblock navbar %}
{% block sidebar -%}
{% include 'sidebar.html' %}
{% include 'admin/sidebar_menu.html' %}
{%- endblock sidebar %}
{% block content_header -%}
{% include 'admin/content_header.html' %}
{%- endblock content_header %}
{% block content -%}
<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-xs-12">
<div class="box">
<div class="box-header">
<h3 class="box-title">User List</h3>
</div>
<!-- /.box-header -->
<div class="box-body">
<table id="example2" class="table table-bordered table-hover">
<thead>
<tr>
<th>User ID</th>
<th>Username</th>
<th>Email</th>
<th>Created At</th>
<th>Role</th>
<th>Action</th>
</tr>
</thead>
<tbody>
{% for user in users %}
<tr>
<td>{{ user.id }}</td>
<td>{{ user.username }}</td>
<td>{{ user.email }}</td>
<td>{{ user.created_at }}</td>
<td>{{ user.role.name }}</td>
<td>Edit</td>
</tr>
{% endfor %}
</tbody>
<tfoot>
<tr>
<th>User ID</th>
<th>Username</th>
<th>Email</th>
<th>Created At</th>
<th>Role</th>
<th>Action</th>
</tr>
</tfoot>
</table>
</div>
<!-- /.box-body -->
</div>
<!-- /.box -->
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</section>
<!-- /.content -->
{%- endblock content %}