mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2025-06-14 12:06:06 +00:00
Add 'create user' template and functionality. Fixes #39
This commit is contained in:
@ -19,6 +19,13 @@
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">User Management</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<a href="{{ url_for('admin_createuser') }}">
|
||||
<button type="button" class="btn btn-flat btn-primary pull-left button_add_user">
|
||||
Add User <i class="fa fa-plus"></i>
|
||||
</button>
|
||||
</a>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<table id="tbl_users" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
@ -97,9 +104,8 @@
|
||||
modal.find('.modal-body p').text(info);
|
||||
modal.find('#button_delete_confirm').click(function() {
|
||||
var postdata = {'action': 'delete_user', 'data': username}
|
||||
applyChanges(postdata, '/admin/manageuser');
|
||||
applyChanges(postdata, '/admin/manageuser', false, true);
|
||||
modal.modal('hide');
|
||||
location.reload();
|
||||
})
|
||||
modal.modal('show');
|
||||
|
||||
|
Reference in New Issue
Block a user