diff --git a/application/helpers/viewHelper.php b/application/helpers/viewHelper.php
index 76364f3a372..0a93dd5c3ff 100644
--- a/application/helpers/viewHelper.php
+++ b/application/helpers/viewHelper.php
@@ -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 '
'.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.").'
', 'footer' => TbHtml::button('Close', array('data-dismiss' => 'modal')) @@ -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' => ''.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.").'
', 'footer' => TbHtml::button('Close', array('data-dismiss' => 'modal')) diff --git a/application/views/admin/survey/subview/accordion/_presentation_panel.php b/application/views/admin/survey/subview/accordion/_presentation_panel.php index 3ce50bb97ef..b2f515bfbbd 100644 --- a/application/views/admin/survey/subview/accordion/_presentation_panel.php +++ b/application/views/admin/survey/subview/accordion/_presentation_panel.php @@ -20,7 +20,7 @@ var sAddParam = ''; -'.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.").'
', 'footer' => TbHtml::button('Close', array('data-dismiss' => 'modal')) )); - ?> \ No newline at end of file + ?>