From 7eecd759f7316b95efa966a9dd496f30caeefb50 Mon Sep 17 00:00:00 2001 From: Nathan Swain Date: Thu, 2 Jun 2022 12:53:41 -0600 Subject: [PATCH] Additional tweaks for bootstrap5 support btn-default -> btn-secondary use mb-3 to add margin to bottom of input-groups use $.modal('show') to show modals use bi bi-trash icon (font-awesome doesn't seem to be included with bs5 data-bs-dismiss on the modal close buttons put recheck templates in container divs add input-group-text class to addon icons for input fields --- example/example/templates/base.html | 2 +- example/example/templates/blank.html | 2 +- mfa/templates/Email/Add.html | 6 +++--- mfa/templates/Email/recheck.html | 8 +++++--- mfa/templates/FIDO2/recheck.html | 2 +- mfa/templates/MFA.html | 3 ++- mfa/templates/TOTP/Add.html | 4 ++-- mfa/templates/TOTP/recheck.html | 8 +++++--- mfa/templates/TrustedDevices/Add.html | 14 +++++++------- mfa/templates/TrustedDevices/start.html | 2 ++ mfa/templates/U2F/recheck.html | 2 +- mfa/templates/mfa_check.html | 1 + mfa/templates/modal.html | 4 ++-- mfa/templates/select_mfa_method.html | 3 +++ 14 files changed, 36 insertions(+), 25 deletions(-) diff --git a/example/example/templates/base.html b/example/example/templates/base.html index 786d08b..e5b1a6e 100644 --- a/example/example/templates/base.html +++ b/example/example/templates/base.html @@ -36,7 +36,7 @@
-
+
") $("#popUpModal").modal() + $("#popUpModal").modal('show') } function toggleKey(id) { @@ -98,7 +99,7 @@ {% if key.key_type in HIDE_DISABLE %} ---- {% else %} - + {% endif %} {% empty %} diff --git a/mfa/templates/TOTP/Add.html b/mfa/templates/TOTP/Add.html index 60b9f69..7bd2ce6 100644 --- a/mfa/templates/TOTP/Add.html +++ b/mfa/templates/TOTP/Add.html @@ -63,7 +63,7 @@ {% block content %}

-
+

Adding Authenticator

@@ -98,7 +98,7 @@
diff --git a/mfa/templates/TOTP/recheck.html b/mfa/templates/TOTP/recheck.html index 2581f01..e172b0e 100644 --- a/mfa/templates/TOTP/recheck.html +++ b/mfa/templates/TOTP/recheck.html @@ -13,6 +13,7 @@ } +
@@ -46,8 +47,8 @@
-
- +
+ @@ -64,7 +65,7 @@
-
+
{% if request.session.mfa_methods|length > 1 %} Select Another Method {% endif %} @@ -74,3 +75,4 @@
+
diff --git a/mfa/templates/TrustedDevices/Add.html b/mfa/templates/TrustedDevices/Add.html index 290d154..ec74e16 100644 --- a/mfa/templates/TrustedDevices/Add.html +++ b/mfa/templates/TrustedDevices/Add.html @@ -67,8 +67,8 @@
-
- +
+ @@ -76,22 +76,22 @@
-
- +
+
- + I confirm that this device is mine and it is only used by me.
{% comment %}
-
- +
+