From e0f939813e8e3bcb36ad02faac09244d5984cf89 Mon Sep 17 00:00:00 2001 From: Tyler Todd Date: Tue, 14 Feb 2023 02:11:13 +0000 Subject: [PATCH] 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 --- .../admin_setting_authentication.html | 73 +++--- .../templates/admin_setting_basic.html | 12 +- .../templates/admin_setting_pdns.html | 6 +- powerdnsadmin/templates/dashboard.html | 2 +- powerdnsadmin/templates/dashboard_domain.html | 69 +++--- powerdnsadmin/templates/domain.html | 84 ++++--- powerdnsadmin/templates/domain_add.html | 14 +- powerdnsadmin/templates/domain_setting.html | 28 +-- powerdnsadmin/templates/register.html | 35 ++- powerdnsadmin/templates/template_add.html | 8 +- powerdnsadmin/templates/user_profile.html | 221 +++++++++--------- 11 files changed, 295 insertions(+), 257 deletions(-) diff --git a/powerdnsadmin/templates/admin_setting_authentication.html b/powerdnsadmin/templates/admin_setting_authentication.html index e0e3a3f..4b8a446 100644 --- a/powerdnsadmin/templates/admin_setting_authentication.html +++ b/powerdnsadmin/templates/admin_setting_authentication.html @@ -35,7 +35,7 @@
-
+

Authentication Settings

@@ -46,20 +46,36 @@ {{ result['msg'] }}
{% endif %} - - -
- - {% endblock %} diff --git a/powerdnsadmin/templates/admin_setting_basic.html b/powerdnsadmin/templates/admin_setting_basic.html index dcfb298..f62d43a 100644 --- a/powerdnsadmin/templates/admin_setting_basic.html +++ b/powerdnsadmin/templates/admin_setting_basic.html @@ -52,15 +52,15 @@ {{ setting }} {% if SETTING.get(setting) in [False] %} - {{ SETTING.get(setting)|display_setting_state }} - +  Off + {% elif SETTING.get(setting) in [True] %} - {{ SETTING.get(setting)|display_setting_state }} - +  On + @@ -69,7 +69,7 @@ - + @@ -87,7 +87,7 @@ {% block extrascripts %} diff --git a/powerdnsadmin/templates/domain_setting.html b/powerdnsadmin/templates/domain_setting.html index 364b938..cc677d4 100644 --- a/powerdnsadmin/templates/domain_setting.html +++ b/powerdnsadmin/templates/domain_setting.html @@ -170,12 +170,12 @@ PowerDNS server or you handle replication via your backend.
  • - Master - This PowerDNS server will serve as the master and will send zone transfers - (AXFRs) to other servers configured as slaves. + Primary - This PowerDNS server will serve as the primary and will send zone transfers + (AXFRs) to other servers configured as secondaries.
  • - Slave - This PowerDNS server will serve as the slave and will request and receive - zone transfers (AXFRs) from other servers configured as masters. + Secondary - This PowerDNS server will serve as the secondaries and will request and receive + zone transfers (AXFRs) from other servers configured as primaries.
  • New Domain Type Setting: @@ -184,13 +184,13 @@
    - - {% if 'email' in error_messages %} + {% if 'username' in error_messages %}
    + {{ error_messages['username'] }}
    {% endif %} @@ -112,8 +115,9 @@
    - {% if 'email' in error_messages %} + {% if 'password' in error_messages %}
    + {{ error_messages['password'] }}
    {% endif %} @@ -130,6 +134,7 @@ {% if 'rpassword' in error_messages %}
    + {{ error_messages['rpassword'] }}
    {% endif %} @@ -138,20 +143,28 @@ {% if captcha_enable %} -
    +
    {{ captcha() }} - - +
    +
    + + + +
    + + {% if 'captcha_result' in error_messages %} +
    + + {{ error_messages['captcha_result'] }} +
    + {% endif %}
    {% endif %}
    -
    - -
    -
    - +
    + +
    diff --git a/powerdnsadmin/templates/template_add.html b/powerdnsadmin/templates/template_add.html index 0120ebc..8bbedc3 100644 --- a/powerdnsadmin/templates/template_add.html +++ b/powerdnsadmin/templates/template_add.html @@ -61,7 +61,7 @@
    -
    +
    @@ -105,10 +105,10 @@ diff --git a/powerdnsadmin/templates/user_profile.html b/powerdnsadmin/templates/user_profile.html index 2b1b476..286760e 100644 --- a/powerdnsadmin/templates/user_profile.html +++ b/powerdnsadmin/templates/user_profile.html @@ -29,118 +29,127 @@ {% block content %}
    -
    +
    -
    -
    -
    -

    Edit my profile{% if session['authentication_type'] != 'LOCAL' %} [Disabled - - Authenticated externally]{% endif %}

    -
    -
    - - -
    +
    {% endblock %} {% block extrascripts %}