From ab7e1eb71be39c8206f15120cd987883fb846280 Mon Sep 17 00:00:00 2001 From: Khanh Ngo Date: Sun, 17 May 2020 16:11:52 +0700 Subject: [PATCH] Fix email confirmation template --- .../templates/email_confirmation.html | 84 ++++++++------- .../templates/resend_confirmation_email.html | 100 +++++++++++++----- 2 files changed, 118 insertions(+), 66 deletions(-) diff --git a/powerdnsadmin/templates/email_confirmation.html b/powerdnsadmin/templates/email_confirmation.html index 34a58eb..8f94773 100644 --- a/powerdnsadmin/templates/email_confirmation.html +++ b/powerdnsadmin/templates/email_confirmation.html @@ -1,40 +1,50 @@ -{% extends "base.html" %} -{% block title %}Email verification - {{ SITE_NAME }}{% endblock %} + + -{% block dashboard_stat %} -{% endblock %} + + + + Email confirmation - {{ SITE_NAME }} + + + + {% assets "css_login" -%} + + {%- endassets %} + + -{% block content %} - -
-
-
- {% if status == 1 %} -

- Email verification successful! -

-

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

- {% elif status == 2 %} -

- Already verified! -

-

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

- {% else %} -

- Email verification failed! -

-

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

- {% endif %} + +
+
+
+ {% if status == 1 %} +

+ Email verification successful! +

+

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

+ {% elif status == 2 %} +

+ Already verified! +

+

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

+ {% else %} +

+ Email verification failed! +

+

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

+ {% endif %} +
+
- -
- -
- -{% endblock %} + + + + + diff --git a/powerdnsadmin/templates/resend_confirmation_email.html b/powerdnsadmin/templates/resend_confirmation_email.html index 0a6f9b0..a2b7f4a 100644 --- a/powerdnsadmin/templates/resend_confirmation_email.html +++ b/powerdnsadmin/templates/resend_confirmation_email.html @@ -1,30 +1,52 @@ -{% extends "base.html" %} -{% block title %}Resend confirmation email - {{ SITE_NAME }}{% endblock %} + + -{% block dashboard_stat %} -{% endblock %} + + + + Resend a confirmation email - {{ SITE_NAME }} + + + + {% assets "css_login" -%} + + {%- endassets %} + + -{% block content %} - -
-
-
-

- Resend a confirmation email -

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

- Enter your email address to get new account confirmation link. + Enter your email address to get account confirmation link.

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

{% if status == 0 %} Email not found! @@ -34,11 +56,31 @@ Confirmation email sent! {% endif %}

-
- +
- -
- -{% endblock %} + + + + + + {% assets "js_login" -%} + + {%- endassets %} + {% assets "js_validation" -%} + + {%- endassets %} + + + +