mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-14 01:20:27 +00:00
Enable fancy DataTables functionality for users table in manageruser
This commit is contained in:
parent
6719fa8afb
commit
1b2fd766bd
@ -20,7 +20,7 @@
|
|||||||
<h3 class="box-title">Manage Users</h3>
|
<h3 class="box-title">Manage Users</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
<table id="tbl_history" class="table table-bordered table-striped">
|
<table id="tbl_users" class="table table-bordered table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Username</th>
|
<th>Username</th>
|
||||||
@ -66,6 +66,16 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block extrascripts %}
|
{% block extrascripts %}
|
||||||
<script>
|
<script>
|
||||||
|
// set up user data table
|
||||||
|
$("#tbl_users").DataTable({
|
||||||
|
"paging" : true,
|
||||||
|
"lengthChange" : false,
|
||||||
|
"searching" : true,
|
||||||
|
"ordering" : true,
|
||||||
|
"info" : true,
|
||||||
|
"autoWidth" : false
|
||||||
|
});
|
||||||
|
|
||||||
// handle revocation of privileges
|
// handle revocation of privileges
|
||||||
$('.button_revoke').click(function() {
|
$('.button_revoke').click(function() {
|
||||||
var modal = $("#modal_revoke");
|
var modal = $("#modal_revoke");
|
||||||
|
Loading…
Reference in New Issue
Block a user