From 62d95e874a34caa8733130cd6f5225720783a5f7 Mon Sep 17 00:00:00 2001 From: Tyler Todd Date: Fri, 17 Feb 2023 22:25:11 +0000 Subject: [PATCH] Final page edits for bootstrap v4 and Admin LTE v3.2 --- .../templates/admin_edit_account.html | 42 +-- powerdnsadmin/templates/admin_edit_key.html | 92 +++--- powerdnsadmin/templates/admin_edit_user.html | 33 ++- .../templates/admin_global_search.html | 8 +- powerdnsadmin/templates/admin_history.html | 2 +- .../templates/admin_history_table.html | 2 +- .../templates/admin_manage_account.html | 40 +-- .../templates/admin_manage_keys.html | 42 +-- .../templates/admin_manage_user.html | 58 ++-- powerdnsadmin/templates/admin_pdns_stats.html | 2 +- .../templates/admin_setting_basic.html | 6 +- .../templates/admin_setting_pdns.html | 4 +- .../templates/admin_setting_records.html | 12 +- powerdnsadmin/templates/base.html | 133 ++++----- powerdnsadmin/templates/dashboard.html | 272 +++++++++--------- powerdnsadmin/templates/dashboard_domain.html | 35 ++- powerdnsadmin/templates/domain.html | 68 +++-- powerdnsadmin/templates/domain_add.html | 24 +- powerdnsadmin/templates/domain_changelog.html | 6 +- powerdnsadmin/templates/domain_remove.html | 26 +- powerdnsadmin/templates/domain_setting.html | 30 +- powerdnsadmin/templates/login.html | 9 +- powerdnsadmin/templates/register.html | 18 +- powerdnsadmin/templates/register_otp.html | 2 +- powerdnsadmin/templates/template.html | 30 +- powerdnsadmin/templates/template_add.html | 19 +- powerdnsadmin/templates/template_edit.html | 56 ++-- powerdnsadmin/templates/user_profile.html | 89 +++--- 28 files changed, 613 insertions(+), 547 deletions(-) diff --git a/powerdnsadmin/templates/admin_edit_account.html b/powerdnsadmin/templates/admin_edit_account.html index 62ccf26..10ff01f 100644 --- a/powerdnsadmin/templates/admin_edit_account.html +++ b/powerdnsadmin/templates/admin_edit_account.html @@ -14,15 +14,15 @@

- Account - {% if create %}New account{% else %}{{ account.name }}{% endif %} + {% if create %}Add Account{% else %}Edit Account{% endif %} + {% if create %}Account{% else %}{{ account.name }}{% endif %}

@@ -35,9 +35,9 @@
-
-
-

{% if create %}Add{% else %}Edit{% endif %} account

+
+
+

{% if create %}Add{% else %}Edit{% endif %} Account

@@ -46,7 +46,7 @@ {% if error %}
-

Error!

+

Error!

{{ error }}
{{ error }} @@ -55,36 +55,36 @@ - + {% if not create %}disabled{% endif %} required> + {% if invalid_accountname %} - Cannot be blank and must only contain alphanumeric + Cannot be blank and must only contain alphanumeric characters{% if SETTING.get('account_name_extra_chars') %}, dots, hyphens or underscores{% endif %}. {% elif duplicate_accountname %} - Account name already in use. + Account name already in use. {% endif %}
- +
- +
- +
-
+

Access Control

@@ -104,17 +104,19 @@
-
-
+
+

Help with creating a new account

diff --git a/powerdnsadmin/templates/admin_edit_key.html b/powerdnsadmin/templates/admin_edit_key.html index 1d8e696..23f58d3 100644 --- a/powerdnsadmin/templates/admin_edit_key.html +++ b/powerdnsadmin/templates/admin_edit_key.html @@ -37,8 +37,8 @@
-
-
+
+

{% if create %}Add{% else %}Edit{% endif %} Key

- -
-
-
+
+

Help with {% if create %}creating a new{% else%}updating a{% endif %} key

@@ -239,7 +242,7 @@ {% if plain_key %} $(document.body).ready(function () { var modal = $("#modal_show_key"); - var info = "{{ plain_key }}"; + var info = "Please copy this key to a secure location. You will be unable to view it again once you close this window: {{ plain_key }}"; modal.find('.modal-body p').text(info); modal.find('#button_key_confirm').click(redirect_modal); modal.find('#button_close_modal').click(redirect_modal); @@ -255,45 +258,46 @@ {% endblock %} {% block modals %}