Added password warning to Form creation modal #1455

This commit is contained in:
zuzanna-maria 2024-10-09 20:08:03 +01:00
parent e40410eecb
commit 8465fc0e44
2 changed files with 7 additions and 1 deletions

View File

@ -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;

View File

@ -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'})