Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Form password warning #1690

Merged
merged 11 commits into from
Dec 12, 2024
Next Next commit
Added password warning to Form creation modal #1455
  • Loading branch information
zuzanna-maria committed Oct 9, 2024
commit 8465fc0e443e7d8e2b48bb113644cebdfa5f8231
5 changes: 5 additions & 0 deletions customize.dist/src/less2/include/creation.less
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@
//margin: 10px 0;
min-height: 28px;
line-height: 28px;
flex-flow: column;
zuzanna-maria marked this conversation as resolved.
Show resolved Hide resolved
label {
flex: 1;
// Force wrap when the other element in the line is 100% (IE bug):
Expand All @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion www/common/common-ui-elements.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'})
Expand Down