summaryrefslogtreecommitdiff
path: root/addons/auth_totp/static
diff options
context:
space:
mode:
authorOlivier Dony <odo@odoo.com>2020-09-25 18:15:34 +0000
committerOlivier Dony <odo@odoo.com>2020-09-25 18:15:34 +0000
commitf085be23da4eab4dc4369fea9e13dc827f12bf4f (patch)
tree7eba9979f6418f3fd814d8ff7f5570f8d0548cab /addons/auth_totp/static
parent6807c86d8568367f40a664a3bb69338372d4786e (diff)
[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) <odo@openerp.com>
Diffstat (limited to 'addons/auth_totp/static')
-rw-r--r--addons/auth_totp/static/tests/totp_flow.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/auth_totp/static/tests/totp_flow.js b/addons/auth_totp/static/tests/totp_flow.js
index 575e847f4f7..eea245041a9 100644
--- a/addons/auth_totp/static/tests/totp_flow.js
+++ b/addons/auth_totp/static/tests/totp_flow.js
@@ -42,7 +42,7 @@ tour.register('totp_tour_setup', {
trigger: 'button[name=totp_enable_wizard]',
}, {
content: "Check that we have to enter enhanced security mode",
- trigger: '.card-title:contains("confirm your password")',
+ trigger: 'div:contains("confirm your password")',
run: () => {},
}, {
content: "Input password",
@@ -126,7 +126,7 @@ tour.register('totp_login_enabled', {
trigger: 'button[name=totp_disable]',
}, {
content: "Check that we have to enter enhanced security mode",
- trigger: '.card-title:contains("confirm your password")',
+ trigger: 'div:contains("confirm your password")',
run: () => {},
}, {
content: "Input password",
@@ -225,7 +225,7 @@ tour.register('totp_admin_disables', {
trigger: 'a.dropdown-item:contains(Disable TOTP on users)'
}, { // enhanced security yo
content: "Check that we have to enter enhanced security mode",
-trigger: '.card-title:contains("confirm your password")',
+trigger: 'div:contains("confirm your password")',
run: () => {},
}, {
content: "Input password",