Skip to content

Commit

Permalink
Fixed issue #12899: When using quick menu to open copy/import survey,…
Browse files Browse the repository at this point in the history
… form is not loaded
  • Loading branch information
lacrioque committed Nov 13, 2017
1 parent 8f197f9 commit 1a2fd0e
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 11 deletions.
2 changes: 1 addition & 1 deletion application/helpers/viewHelper.php
Expand Up @@ -314,6 +314,6 @@ public static function getLanguageData($bOrderByNative=false,$sLanguageCode='en'
* @return string
*/
public static function getViewTestTag($name){
return CHtml::tag('div',['id'=>'action::'.$name,'style'=>'']);
return '<x-test id="action::'.$name.'" />';
}
}
2 changes: 1 addition & 1 deletion application/views/admin/survey/editLocalSettings_view.php
Expand Up @@ -36,7 +36,7 @@
</div>
</div>
</div>
<hr class="col-sm-12"></hr>
<hr class="col-sm-12" />
</div>
<div class="row">
<div class="col-sm-12 col-md-6">
Expand Down
Expand Up @@ -57,7 +57,7 @@
</div>
</div>
</div>
<hr class="col-sm-12"></hr>
<hr class="col-sm-12" />
</div>
<div class="row">
<div class="col-sm-12 col-md-6">
Expand Down
Expand Up @@ -44,12 +44,13 @@
'offLabel'=>gT('Off'),
'events'=>array('switchChange.bootstrapSwitch'=>"function(event,state){
if ($('#anonymized').is(':checked') == true) {
$('#datestampModal').modal();
$('#datestampModal_1').modal();
}
}")
));
$this->widget('bootstrap.widgets.TbModal', array(
'id' => 'datestampModal',
'id' => 'datestampModal_1',
'htmlOptions' => ['class' => 'selector_dateStampModal_notification'],
'header' => gt('Warning','unescaped'),
'content' => '<p>'.gT("If the option -Anonymized responses- is activated only a dummy date stamp (1980-01-01) will be used for all responses to ensure the anonymity of your participants.").'</p>',
'footer' => TbHtml::button('Close', array('data-dismiss' => 'modal'))
Expand All @@ -75,10 +76,15 @@
'name' => 'ipaddr',
'value'=> $oSurvey->isIpAddr,
'onLabel'=>gT('On'),
'offLabel'=>gT('Off')
'offLabel'=>gT('Off'),
'events'=>array('switchChange.bootstrapSwitch'=>"function(event,state){
if ($('#anonymized').is(':checked') == true) {
$('#datestampModal_2').modal();
}
}")
));
$this->widget('bootstrap.widgets.TbModal', array(
'id' => 'datestampModal',
'id' => 'datestampModal_2',
'header' => gt('Warning','unescaped'),
'content' => '<p>'.gT("If the option -Anonymized responses- is activated only a dummy date stamp (1980-01-01) will be used for all responses to ensure the anonymity of your participants. If you are running a closed survey you will NOT be able to link responses to participants if the survey is set to be anonymous.").'</p>',
'footer' => TbHtml::button('Close', array('data-dismiss' => 'modal'))
Expand Down
Expand Up @@ -20,7 +20,7 @@
var sAddParam = '';
</script>
<!-- Presentation panel -->
<div id='presentation' class="container-fluid">
<div id='presentation-panel' class="container-fluid">
<div class="col-sm-12 col-md-6">
<!-- Navigation delay -->
<div class="form-group">
Expand Down
Expand Up @@ -19,7 +19,7 @@
var sAddParam = '';
</script>
<!-- Publication panel -->
<div id='publication' class="container-fluid">
<div id='publication-panel' class="container-fluid">
<div class="row">
<div class="col-sm-12 col-md-6">

Expand Down
Expand Up @@ -20,7 +20,7 @@
var sAddParam = '';
</script>
<!-- tokens panel -->
<div id='tokens' class="container-fluid">
<div id='tokens-panel' class="container-fluid">
<div class="row">
<div class="col-sm-12 col-md-6">
<!-- Set token length to -->
Expand Down Expand Up @@ -188,4 +188,4 @@ function alertPrivacy()
'content' => '<p>'.gT("If the option -Anonymized responses- is activated only a dummy date stamp (1980-01-01) will be used for all responses to ensure the anonymity of your participants.").'</p>',
'footer' => TbHtml::button('Close', array('data-dismiss' => 'modal'))
));
?>
?>

0 comments on commit 1a2fd0e

Please sign in to comment.