mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2025-06-16 13:06:06 +00:00
Tabs on dashboard.html now fade effect when switching between
First pass at HTML conversion from Master/Slave to Primary/Secondary (TODO: Backend) Start work on migrating admin_auth_settings to Bootstrap v4 admin_setting_basic -> Change plain text for On/Off to toggles in current state, and changed "Action" column to the opposite toggle of current setting dashboard_domain -> Reduce deuplicate code for the new dropdown-menu for Actions register -> Add exclamation icon in front of error text template_add -> changed box-body to card-body user_profile -> Fixed tab naviation for Bootstrap v4. Tabs also fade between changes
This commit is contained in:
@ -52,15 +52,15 @@
|
||||
{{ setting }}
|
||||
</td>
|
||||
{% if SETTING.get(setting) in [False] %}
|
||||
<td>{{ SETTING.get(setting)|display_setting_state }}</td>
|
||||
<td width="6%">
|
||||
<td><i class="fas fa-toggle-off"></i> Off</td>
|
||||
<td width="20%">
|
||||
<button type="button" class="btn btn-success setting-toggle-button" id="{{ setting }}">
|
||||
<i class="fas fa-toggle-on"></i> Turn On
|
||||
</button>
|
||||
</td>
|
||||
{% elif SETTING.get(setting) in [True] %}
|
||||
<td>{{ SETTING.get(setting)|display_setting_state }}</td>
|
||||
<td width="6%">
|
||||
<td><i class="fas fa-toggle-on"></i> On</td>
|
||||
<td width="20%">
|
||||
<button type="button" class="btn btn-danger setting-toggle-button" id="{{ setting }}">
|
||||
<i class="fas fa-toggle-off"></i> Turn Off
|
||||
</button>
|
||||
@ -69,7 +69,7 @@
|
||||
<td>
|
||||
<input name="value" id="value" value="{{ SETTING.get(setting) }}">
|
||||
</td>
|
||||
<td width="6%">
|
||||
<td width="20%">
|
||||
<button type="button" class="btn btn-primary setting-save-button" id="{{ setting }}">
|
||||
<i class="fas fa-save"></i> Save
|
||||
</button>
|
||||
@ -87,7 +87,7 @@
|
||||
|
||||
{% block extrascripts %}
|
||||
<script>
|
||||
// set up history data table
|
||||
// set up settings table
|
||||
$("#tbl_settings").DataTable({
|
||||
"paging": false,
|
||||
"lengthChange": false,
|
||||
|
Reference in New Issue
Block a user