Merge branch 'forms2' of github.com:xwiki-labs/cryptpad into forms2

pull/1/head
yflory 3 years ago
commit c3d2bd038f

@ -3116,7 +3116,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 // Private / public status
var resultsType = h('div.cp-form-results-type-container'); var resultsType = h('div.cp-form-results-type-container');
var $results = $(resultsType); var $results = $(resultsType);
@ -3150,7 +3150,7 @@ define([
$responseMsg.empty(); $responseMsg.empty();
Messages.form_updateMsg = "Update submit message"; // XXX 4.11.0 Messages.form_updateMsg = "Update submit message"; // XXX 4.11.0
Messages.form_addMsg = "Add 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 text = content.answers.msg ? Messages.form_updateMsg : Messages.form_addMsg;
var btn = h('button.btn.btn-secondary', text); var btn = h('button.btn.btn-secondary', text);
$(btn).click(function () { $(btn).click(function () {
@ -3222,7 +3222,7 @@ define([
refreshResponse(); refreshResponse();
// Make answers anonymous // 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 anonContainer = h('div.cp-form-anon-container');
var $anon = $(anonContainer); var $anon = $(anonContainer);
var refreshAnon = function () { var refreshAnon = function () {
@ -3244,6 +3244,7 @@ define([
refreshAnon(); refreshAnon();
// XXX UPDATE KEYS "form_anonyous_on", "form_anonymous_off" and "form_anonymous" // 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 // Allow guest(anonymous) answers
var privacyContainer = h('div.cp-form-privacy-container'); var privacyContainer = h('div.cp-form-privacy-container');
var $privacy = $(privacyContainer); var $privacy = $(privacyContainer);
@ -3274,7 +3275,7 @@ define([
refreshPrivacy(); refreshPrivacy();
// Allow responses edition // 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 editableContainer = h('div.cp-form-editable-container');
var $editable = $(editableContainer); var $editable = $(editableContainer);
var refreshEditable = function () { var refreshEditable = function () {
@ -3374,8 +3375,8 @@ define([
return [ return [
preview, preview,
endDateContainer, endDateContainer,
privacyContainer,
anonContainer, anonContainer,
privacyContainer,
editableContainer, editableContainer,
resultsType, resultsType,
responseMsg responseMsg

Loading…
Cancel
Save