mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2025-07-31 01:33:44 +00:00
Final page edits for bootstrap v4 and Admin LTE v3.2
This commit is contained in:
@@ -35,13 +35,11 @@
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="card">
|
||||
<div class="card-header with-border">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">User Management</h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<a href="{{ url_for('admin.edit_user') }}">
|
||||
<button type="button" class="btn btn-primary pull-left button_add_user">
|
||||
<i class="fa fa-plus"></i> Add User
|
||||
<button type="button" class="btn btn-primary float-right button_add_user">
|
||||
<i class="fa-solid fa-plus"></i> Add User
|
||||
</button>
|
||||
</a>
|
||||
</div>
|
||||
@@ -80,20 +78,30 @@
|
||||
<button type="button" class="btn btn-warning button_revoke"
|
||||
id="{{ user.username }}"
|
||||
{% if current_user.role.name=='Operator' and user.role.name=='Administrator' %}disabled{% endif %}>
|
||||
<i class="fa fa-lock"></i> Revoke
|
||||
<i class="fa-solid fa-link-slash"></i> Revoke
|
||||
</button>
|
||||
</td>
|
||||
<td width="15%">
|
||||
<button type="button" class="btn btn-success button_edit"
|
||||
onclick="window.location.href='{{ url_for('admin.edit_user', user_username=user.username) }}'"
|
||||
|
||||
<div class="dropdown">
|
||||
<button class="btn btn-primary dropdown-toggle" type="button" id="dropdownMenu" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"
|
||||
{% if current_user.role.name=='Operator' and user.role.name=='Administrator' %}disabled{% endif %}>
|
||||
<i class="fa fa-lock"></i> Edit
|
||||
</button>
|
||||
<button type="button" class="btn btn-danger button_delete"
|
||||
id="{{ user.username }}"
|
||||
{% if user.username==current_user.username or (current_user.role.name=='Operator' and user.role.name=='Administrator') %}disabled{% endif %}>
|
||||
<i class="fa fa-trash"></i> Delete
|
||||
</button>
|
||||
<i class="fa-solid fa-bars"></i> Actions
|
||||
</button>
|
||||
<div class="dropdown-menu" aria-labelledby="dropdownMenu">
|
||||
<button type="button" class="dropdown-item btn-warning" onclick="window.location.href='{{ url_for('admin.edit_user', user_username=user.username) }}'">
|
||||
<i class="fa-solid fa-edit"></i> Edit User
|
||||
</button>
|
||||
{% if not user.username==current_user.username or (current_user.role.name=='Operator' and user.role.name=='Administrator') %}
|
||||
<div class="dropdown-divider"></div>
|
||||
<button type="button"class="dropdown-item btn-secondary button_delete" id="{{ user.username }}">
|
||||
<font color="red">
|
||||
<i class="fa-solid fa-trash"></i> Delete User
|
||||
</font>
|
||||
</button>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
@@ -179,7 +187,7 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block modals %}
|
||||
<div class="modal fade modal-warning" id="modal_revoke">
|
||||
<div class="modal fade" id="modal_revoke">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
@@ -192,14 +200,18 @@
|
||||
<p></p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="button" class="btn btn-danger" id="button_revoke_confirm">Revoke</button>
|
||||
<button type="button" class="btn btn-secondary float-right" data-dismiss="modal">
|
||||
Close
|
||||
</button>
|
||||
<button type="button" class="btn btn-danger float-right" id="button_revoke_confirm">
|
||||
Revoke
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade modal-warning" id="modal_delete">
|
||||
<div class="modal fade" id="modal_delete">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
@@ -212,8 +224,12 @@
|
||||
<p></p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="button" class="btn btn-danger" id="button_delete_confirm">Delete</button>
|
||||
<button type="button" class="btn btn-default float-right" data-dismiss="modal">
|
||||
Close
|
||||
</button>
|
||||
<button type="button" class="btn btn-danger float-right" id="button_delete_confirm">
|
||||
Delete
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user