From 8465fc0e443e7d8e2b48bb113644cebdfa5f8231 Mon Sep 17 00:00:00 2001 From: zuzanna-maria Date: Wed, 9 Oct 2024 20:08:03 +0100 Subject: [PATCH] Added password warning to Form creation modal #1455 --- customize.dist/src/less2/include/creation.less | 5 +++++ www/common/common-ui-elements.js | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/customize.dist/src/less2/include/creation.less b/customize.dist/src/less2/include/creation.less index cd04cf858..5ff730a64 100644 --- a/customize.dist/src/less2/include/creation.less +++ b/customize.dist/src/less2/include/creation.less @@ -165,6 +165,7 @@ //margin: 10px 0; min-height: 28px; line-height: 28px; + flex-flow: column; label { flex: 1; // Force wrap when the other element in the line is 100% (IE bug): @@ -178,6 +179,10 @@ } } } + + .cp-creation-password-warning { + background-color:@creation-bg-color-light; + } .cp-creation-help, .cp-creation-warning { font-size: 16px; color: @cp_creation-fg; diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index ae0dea302..b54cc0f14 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -2770,7 +2770,8 @@ define([ ]); // Password - var password = h('div.cp-creation-password', [ + var text = h('div.cp-creation-password-warning', 'Note that for Forms, you can only set the password during creation. This password cannot be changed later.'); + var password = h('div.cp-creation-password', [text, UI.createCheckbox('cp-creation-password', Messages.properties_addPassword, false), h('span.cp-creation-password-picker.cp-creation-slider', [ UI.passwordInput({id: 'cp-creation-password-val'})