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

View File

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

View File

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