From f085be23da4eab4dc4369fea9e13dc827f12bf4f Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Fri, 25 Sep 2020 18:15:34 +0000 Subject: [IMP] base, totp: simplify form layout and improve responsiveness Some of the TOTP-related forms contained an attempt at making a centered modal pop-up, using a bootstrap `card` that would also serve to emphasize that the interaction was sensitive and security-related. Some of the "footer buttons" were moved inside the form to make it more obvious that they were part of the interaction flow. However some of this caused breakages of responsiveness and did not yield a really satisfactory result anyway. This commit switches back to using regular non-centered forms. It looks quite ugly because the content is better suited for a narrow modal, but it means less surprises in terms of layout and less responsiveness issues. closes odoo/odoo#58541 Signed-off-by: Olivier Dony (odo) --- addons/auth_totp/views/user_preferences.xml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'addons/auth_totp/views/user_preferences.xml') diff --git a/addons/auth_totp/views/user_preferences.xml b/addons/auth_totp/views/user_preferences.xml index 9255b19a920..b1d70f6076b 100644 --- a/addons/auth_totp/views/user_preferences.xml +++ b/addons/auth_totp/views/user_preferences.xml @@ -55,7 +55,7 @@
-
+

Scan this barcode with your app

Scan the image below with the authenticator app on your phone.
@@ -72,7 +72,7 @@ -
+

Your two-factor secret:

@@ -80,24 +80,27 @@
- +

Enter the 6-digit code from your app

-
+
After scanning the barcode, the app will display a 6-digit code that you should enter below. Don't worry if the code changes in the app, it stays valid a bit longer.
- - + +
-
-
+ -- cgit v1.2.3