From b3c80df6745dd6cfa303cf741bf22091d485c8b7 Mon Sep 17 00:00:00 2001 From: Matt Scott Date: Mon, 20 Feb 2023 12:12:22 -0500 Subject: [PATCH] Completed first-round updates for the email confirmation views. --- .../templates/email_confirmation.html | 57 ++++---- .../templates/resend_confirmation_email.html | 138 +++++++++--------- 2 files changed, 96 insertions(+), 99 deletions(-) diff --git a/powerdnsadmin/templates/email_confirmation.html b/powerdnsadmin/templates/email_confirmation.html index 9a26c14..3ecef24 100644 --- a/powerdnsadmin/templates/email_confirmation.html +++ b/powerdnsadmin/templates/email_confirmation.html @@ -1,50 +1,51 @@ - - - - Email confirmation - {{ SITE_NAME }} - - - - {% assets "css_login" -%} - - {%- endassets %} - + + + Email Confirmation - {{ SITE_NAME }} + + + + {% assets "css_login" -%} + + {%- endassets %} + - -
-
-
- {% if status == 1 %} +
+
+
+ {% if status == 1 %}

Email verification successful!

- You have confirmed your account. Click here to login. + You have confirmed your account. Click here to login.

- {% elif status == 2 %} + {% elif status == 2 %}

- Already verified! + Already verified!

- You have confirmed your account already. Click here to login. + You have confirmed your account already. Click here to + login.

- {% else %} + {% else %}

- Email verification failed! + Email verification failed!

- The confirmation link is invalid or has expired. Click here if you want to resend a new link. + The confirmation link is invalid or has expired. Click here if you want to resend a new + link.

- {% endif %} -
- + {% endif %}
- -
+ +
+ +
diff --git a/powerdnsadmin/templates/resend_confirmation_email.html b/powerdnsadmin/templates/resend_confirmation_email.html index fd05197..c39587f 100644 --- a/powerdnsadmin/templates/resend_confirmation_email.html +++ b/powerdnsadmin/templates/resend_confirmation_email.html @@ -1,86 +1,82 @@ - - - - Resend a confirmation email - {{ SITE_NAME }} - - - - {% assets "css_login" -%} - - {%- endassets %} - + + + Resend Confirmation Email - {{ SITE_NAME }} + + + + {% assets "css_login" -%} + + {%- endassets %} + - -
+
- {% if error %} -
- - {{ error }} -
- {% endif %} -

+ {% if error %} +

+ + {{ error }} +
+ {% endif %} +

Enter your email address to get account confirmation link. -

-
- -
+

+ - - - -
-
-
- -
-
- -
- -
-
-

- {% if status == 0 %} - Email not found! - {% elif status == 1 %} - Email already confirmed! - {% elif status == 2 %} - Confirmation email sent! - {% endif %} -

-
-
+
+ + + + +
+
+
+ +
+
+ +
+ +
+
+

+ {% if status == 0 %} + Email not found! + {% elif status == 1 %} + Email already confirmed! + {% elif status == 2 %} + Confirmation email sent! + {% endif %} +

+
+
- - -
- + +
+ +
+

Powered by PowerDNS-Admin

+
- {% assets "js_login" -%} - - {%- endassets %} - {% assets "js_validation" -%} - - {%- endassets %} - +{%- endassets %} +{% assets "js_validation" -%} + +{%- endassets %} + + - - + \ No newline at end of file