From f97ca8e4cd4c366b8bf62b02b32422b7805641ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Benqu=C3=A9?= Date: Thu, 26 Aug 2021 14:44:10 +0100 Subject: [PATCH 1/2] Test new names for form editor settings --- www/form/inner.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/form/inner.js b/www/form/inner.js index 1a1ab6759..c6ec069a1 100644 --- a/www/form/inner.js +++ b/www/form/inner.js @@ -3225,6 +3225,7 @@ define([ refreshAnon(); // XXX UPDATE KEYS "form_anonyous_on", "form_anonymous_off" and "form_anonymous" + Messages.form_anonymous = "Guest access (not logged in)"; // XXX existing key // Allow guest(anonymous) answers var privacyContainer = h('div.cp-form-privacy-container'); var $privacy = $(privacyContainer); @@ -3255,7 +3256,7 @@ define([ refreshPrivacy(); // Allow responses edition - Messages.form_editable = "Allow users to edit their responses"; // XXX + Messages.form_editable = "Editing after submit"; // XXX var editableContainer = h('div.cp-form-editable-container'); var $editable = $(editableContainer); var refreshEditable = function () { From ee878ca830eb9b48b267fa56e0c0d47fb1313280 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Benqu=C3=A9?= Date: Thu, 26 Aug 2021 15:06:41 +0100 Subject: [PATCH 2/2] Change settings order and test microcopy --- www/form/inner.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/www/form/inner.js b/www/form/inner.js index 8bd1d34ec..4351c8d17 100644 --- a/www/form/inner.js +++ b/www/form/inner.js @@ -3106,7 +3106,7 @@ define([ }); }); - + Messages.form_makePublicWarning = "Are you sure you want to make responses to this form public? Past and future responses will be visible by participants. This cannot be undone." // XXX existing key // Private / public status var resultsType = h('div.cp-form-results-type-container'); var $results = $(resultsType); @@ -3140,7 +3140,7 @@ define([ $responseMsg.empty(); Messages.form_updateMsg = "Update submit message"; // XXX 4.11.0 Messages.form_addMsg = "Add submit message"; // XXX 4.11.0 - Messages.form_responseMsg = "Add a message that will be displayed after participants submit the form."; // XXX 4.11.0 + Messages.form_responseMsg = "This message will be displayed after participants submit the form."; // XXX 4.11.0 var text = content.answers.msg ? Messages.form_updateMsg : Messages.form_addMsg; var btn = h('button.btn.btn-secondary', text); $(btn).click(function () { @@ -3212,7 +3212,7 @@ define([ refreshResponse(); // Make answers anonymous - Messages.form_makeAnon = "Make all answers anonymous"; // XXX + Messages.form_makeAnon = "Anonymous responses"; // XXX var anonContainer = h('div.cp-form-anon-container'); var $anon = $(anonContainer); var refreshAnon = function () { @@ -3365,8 +3365,8 @@ define([ return [ preview, endDateContainer, - privacyContainer, anonContainer, + privacyContainer, editableContainer, resultsType, responseMsg