From b6992d3ced07a74807742530c531f6fe4512c7b0 Mon Sep 17 00:00:00 2001 From: nswain Date: Wed, 26 Aug 2020 10:19:38 -0600 Subject: [PATCH] Addresses several structure and style issues with TOTP and Email dialogs. Added missing div tags that were causing style problems. Reformatted HTML to make it easier to read. Added whitespace above buttons on TOTP Add dialog. Changed "6-digit" to "code" on email dialogs because number of digits varies. --- mfa/templates/Email/Add.html | 88 +++++++++++++++----------------- mfa/templates/Email/recheck.html | 2 +- mfa/templates/MFA.html | 2 +- mfa/templates/TOTP/Add.html | 54 ++++++++++---------- 4 files changed, 71 insertions(+), 75 deletions(-) diff --git a/mfa/templates/Email/Add.html b/mfa/templates/Email/Add.html index 9ba67fa..9b1db75 100644 --- a/mfa/templates/Email/Add.html +++ b/mfa/templates/Email/Add.html @@ -2,54 +2,50 @@ {% block head %} {% endblock %} {% block content %} -
-
- -
-
- Activate Token by email -
-
- +
+
+
+
+
+ Activate Token by email +
+
- - - {% csrf_token %} - {% if invalid %} -
- Sorry, The provided token is not valid. + {% csrf_token %} + {% if invalid %} +
+ Sorry, The provided token is not valid. +
+ {% endif %} + {% if quota %} +
+ {{ quota }} +
+ {% endif %} +
+
+
+

Enter the code sent to your email.

+
- {% endif %} - {% if quota %} -
- {{ quota }} +
+
+
+
+ + + + +
+
+
+ +
+
- {% endif %} -
-
-
-

Enter the 6-digits sent to your email.

-
-
- -
-
-
-
- - - - - -
-
- -
- - -
-
-
+
-
+
+
+
{% endblock %} \ No newline at end of file diff --git a/mfa/templates/Email/recheck.html b/mfa/templates/Email/recheck.html index 82f6d57..913804c 100644 --- a/mfa/templates/Email/recheck.html +++ b/mfa/templates/Email/recheck.html @@ -39,7 +39,7 @@
-

Enter the 6-digits sent to your email.

+

Enter the code sent to your email.

diff --git a/mfa/templates/MFA.html b/mfa/templates/MFA.html index c03aed0..9f250c9 100644 --- a/mfa/templates/MFA.html +++ b/mfa/templates/MFA.html @@ -66,7 +66,7 @@ {% endif %}
- +


diff --git a/mfa/templates/TOTP/Add.html b/mfa/templates/TOTP/Add.html index 35b68b2..5bae45f 100644 --- a/mfa/templates/TOTP/Add.html +++ b/mfa/templates/TOTP/Add.html @@ -2,7 +2,7 @@ {% extends "base.html" %} {% load static %} {% block head %} - - - + {% endblock %} {% block content %} -
-
-
-
-
-

Adding Authenticator

-
-
+
+
+
+
+
+

Adding Authenticator

+
+
-

Scan the image below with the two-factor authentication app on your phone/PC phone/PC. If you can’t use a barcode, - enter this text instead.

+

Scan the image below with the two-factor authentication app on your phone/PC. If you can’t use a barcode, + enter this text instead.

- -
- {% include "modal.html" %} +
+{% include "modal.html" %} {% endblock %} \ No newline at end of file