Compare commits

..

No commits in common. "e966b1e7bf5e3cd02b1684fac335847ee9ba61b3" and "f1926ffd990d1a8e8839ea51b9f27b392c589472" have entirely different histories.

3 changed files with 74 additions and 79 deletions

View File

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

View File

@ -1,45 +1,42 @@
<div class="container mb-5"> <div class="row">
<div class="row"> <div class="col">
<div class="col"> <h1 class="h3">Roles</h1>
<h1 class="h3">Roles</h1> <input type="hidden" id="form-token" value="${token}">
<input type="hidden" id="form-token" value="${token}"> <div class="table-responsive">
<div class="table-responsive"> <table class="table table-sm table-bordered table-striped" id="table-roles" width="100%" cellspacing="0">
<table class="table table-sm table-bordered table-striped" id="table-roles" width="100%" cellspacing="0"> <thead class="table-primary">
<thead class="table-primary"> <tr>
<tr> <th>ID</th>
<th>ID</th> <th>Name</th>
<th>Name</th> <th>Users</th>
<th>Users</th> <th>Action</th>
<th>Action</th> </tr>
</tr> <tr>
<tr> <th>
<th> <input class="form-control form-control-sm" placeholder="ID" id="form-add-id">
<input class="form-control form-control-sm" placeholder="ID" id="form-add-id"> </th>
</th> <th>
<th> <input class="form-control form-control-sm" placeholder="Name" id="form-add-name">
<input class="form-control form-control-sm" placeholder="Name" id="form-add-name"> </th>
</th> <th></th>
<th></th> <th>
<th> <button class="btn btn-primary btn-sm" type="button" onclick="submitAdd()">
<button class="btn btn-primary btn-sm" type="button" onclick="submitAdd()"> <span class="fa fa-plus"></span> Add
<span class="fa fa-plus"></span> Add </button>
</button> </th>
</th> </tr>
</tr> </thead>
</thead> <tbody></tbody>
<tbody></tbody> </table>
</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>
</div> </div>
<!-- End col --> <!-- 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>
</div> </div>
<!-- End row --> <!-- End col -->
</div> </div>
<!-- End container --> <!-- End row -->

View File

@ -1,34 +1,31 @@
<div class="container mb-5"> <div class="row">
<div class="row"> <div class="col">
<div class="col"> <h1 class="h3">Users</h1>
<h1 class="h3">Users</h1> <input type="hidden" id="form-token" value="${token}">
<input type="hidden" id="form-token" value="${token}"> <div class="table-responsive">
<div class="table-responsive"> <table class="table table-sm table-bordered table-striped" id="table-users" width="100%" cellspacing="0">
<table class="table table-sm table-bordered table-striped" id="table-users" width="100%" cellspacing="0"> <thead class="table-primary">
<thead class="table-primary"> <tr>
<tr> <th>ID</th>
<th>ID</th> <th>Username</th>
<th>Username</th> <th>Email</th>
<th>Email</th> <th>Phone</th>
<th>Phone</th> <th>Roles</th>
<th>Roles</th> <th>Verification</th>
<th>Verification</th> <th>Action</th>
<th>Action</th> </tr>
</tr> </thead>
</thead> <tbody></tbody>
<tbody></tbody> </table>
</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>
</div> </div>
<!-- End col --> <!-- 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>
</div> </div>
<!-- End row --> <!-- End col -->
</div> </div>
<!-- End container --> <!-- End row -->