Compare commits

...

3 Commits

3 changed files with 79 additions and 74 deletions

View File

@ -1,9 +1,8 @@
<h1>Here is Dashboard!</h1>
% if 4 in user['profile']['roles']:
<!-- Debug Section -->
<div class="container mb-5">
<h1>Here is Dashboard!</h1>
% if 4 in user['profile']['roles']:
<!-- Debug Section -->
<div class="row">
<div class="col">
<div class="card">
@ -20,6 +19,6 @@
</div>
</div>
</div>
</div>
% endif
% endif
</div>

View File

@ -1,42 +1,45 @@
<div class="row">
<div class="col">
<h1 class="h3">Roles</h1>
<input type="hidden" id="form-token" value="${token}">
<div class="table-responsive">
<table class="table table-sm table-bordered table-striped" id="table-roles" width="100%" cellspacing="0">
<thead class="table-primary">
<tr>
<th>ID</th>
<th>Name</th>
<th>Users</th>
<th>Action</th>
</tr>
<tr>
<th>
<input class="form-control form-control-sm" placeholder="ID" id="form-add-id">
</th>
<th>
<input class="form-control form-control-sm" placeholder="Name" id="form-add-name">
</th>
<th></th>
<th>
<button class="btn btn-primary btn-sm" type="button" onclick="submitAdd()">
<span class="fa fa-plus"></span> Add
</button>
</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
<!-- End table-responsive -->
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
<script src="https://cdn.datatables.net/1.13.5/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/1.13.5/js/dataTables.bootstrap5.min.js"></script>
<div class="container mb-5">
<div class="row">
<div class="col">
<h1 class="h3">Roles</h1>
<input type="hidden" id="form-token" value="${token}">
<div class="table-responsive">
<table class="table table-sm table-bordered table-striped" id="table-roles" width="100%" cellspacing="0">
<thead class="table-primary">
<tr>
<th>ID</th>
<th>Name</th>
<th>Users</th>
<th>Action</th>
</tr>
<tr>
<th>
<input class="form-control form-control-sm" placeholder="ID" id="form-add-id">
</th>
<th>
<input class="form-control form-control-sm" placeholder="Name" id="form-add-name">
</th>
<th></th>
<th>
<button class="btn btn-primary btn-sm" type="button" onclick="submitAdd()">
<span class="fa fa-plus"></span> Add
</button>
</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
<!-- End table-responsive -->
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
<script src="https://cdn.datatables.net/1.13.5/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/1.13.5/js/dataTables.bootstrap5.min.js"></script>
<script type="text/javascript" src="/js/carrack.js"></script>
<script type="text/javascript" src="/js/dashboard/roles.js"></script>
<script type="text/javascript" src="/js/carrack.js"></script>
<script type="text/javascript" src="/js/dashboard/roles.js"></script>
</div>
<!-- End col -->
</div>
<!-- End col -->
<!-- End row -->
</div>
<!-- End row -->
<!-- End container -->

View File

@ -1,31 +1,34 @@
<div class="row">
<div class="col">
<h1 class="h3">Users</h1>
<input type="hidden" id="form-token" value="${token}">
<div class="table-responsive">
<table class="table table-sm table-bordered table-striped" id="table-users" width="100%" cellspacing="0">
<thead class="table-primary">
<tr>
<th>ID</th>
<th>Username</th>
<th>Email</th>
<th>Phone</th>
<th>Roles</th>
<th>Verification</th>
<th>Action</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
<!-- End table-responsive -->
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
<script src="https://cdn.datatables.net/1.13.5/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/1.13.5/js/dataTables.bootstrap5.min.js"></script>
<div class="container mb-5">
<div class="row">
<div class="col">
<h1 class="h3">Users</h1>
<input type="hidden" id="form-token" value="${token}">
<div class="table-responsive">
<table class="table table-sm table-bordered table-striped" id="table-users" width="100%" cellspacing="0">
<thead class="table-primary">
<tr>
<th>ID</th>
<th>Username</th>
<th>Email</th>
<th>Phone</th>
<th>Roles</th>
<th>Verification</th>
<th>Action</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
<!-- End table-responsive -->
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
<script src="https://cdn.datatables.net/1.13.5/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/1.13.5/js/dataTables.bootstrap5.min.js"></script>
<script type="text/javascript" src="/js/carrack.js"></script>
<script type="text/javascript" src="/js/dashboard/users.js"></script>
<script type="text/javascript" src="/js/carrack.js"></script>
<script type="text/javascript" src="/js/dashboard/users.js"></script>
</div>
<!-- End col -->
</div>
<!-- End col -->
<!-- End row -->
</div>
<!-- End row -->
<!-- End container -->