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
Prev Previous commit
Next Next commit
Adjust alert
- changed type from warning to info
- increased line-height to 120%
  • Loading branch information
davidbenque committed Oct 21, 2024
commit 36be1e7fc914be4b57eea19ba5bfdbdf27f254ed
2 changes: 1 addition & 1 deletion customize.dist/src/less2/include/creation.less
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@
.cp-creation-password-warning {
margin-top: 0.4rem;
font-size: 0.75em;
line-height: 100%;
line-height: 120%;
}
}
.cp-creation-settings {
Expand Down
4 changes: 1 addition & 3 deletions www/common/common-ui-elements.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ define([
], function ($, Config, Broadcast, Util, Hash, Language, UI, Constants, Feedback, h, Clipboard,
Messages, AppConfig, Pages, NThen, InviteInner, Visible, PadTypes) {

Messages.form_passwordWarning = 'For Forms, you can only set the password during creation. It cannot be changed later.' //XX

var UIElements = {};
var urlArgs = Config.requireConf.urlArgs;

Expand Down Expand Up @@ -2775,7 +2773,7 @@ define([
// Password
let text;
if (type === 'form') {
text = h('div.cp-creation-password-warning.alert.alert-warning.dismissable', h('span.cp-inline-alert-text', Messages.form_passwordWarning));
text = h('div.cp-creation-password-warning.alert.alert-info.dismissable', h('span.cp-inline-alert-text', Messages.form_passwordWarning));
}
var password = h('div.cp-creation-password', [
UI.createCheckbox('cp-creation-password', Messages.properties_addPassword, false),
Expand Down