@ -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 anonymou s"; // XXX
Messages . form _makeAnon = " Anonymous response s"; // 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