Skip to content

Commit

Permalink
Dev: moved classes, id and attribute to core for privacy.twig
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Aug 24, 2017
1 parent 5b17aaf commit 385b156
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
10 changes: 10 additions & 0 deletions application/helpers/SurveyRuntimeHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -1839,6 +1839,16 @@ private function setClassAndIds()

$this->aSurveyInfo['attr']['questiongroup'] = $this->aSurveyInfo['attr']['groupcontainer'] = $this->aSurveyInfo['attr']['groupcontainer'] = $this->aSurveyInfo['attr']['groupdesc'] = '';

// Privacy
$this->aSurveyInfo['class']['privacycontainer'] = ' row privacy ';
$this->aSurveyInfo['class']['privacycol'] = ' col-sm-12 col-centered ';
$this->aSurveyInfo['class']['privacyhead'] = ' h4 text-primary ';
$this->aSurveyInfo['class']['privacybody'] = ' ls-privacy-body ';



$this->aSurveyInfo['attr']['privacycontainer'] = $this->aSurveyInfo['attr']['privacycol'] = $this->aSurveyInfo['attr']['privacyhead'] = $this->aSurveyInfo['attr']['privacybody'] = '';

// Here you can add metas from core
$this->aSurveyInfo['metas'] = ' ';

Expand Down
10 changes: 5 additions & 5 deletions templates/default/views/subviews/privacy/privacy.twig
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@
#}

<!-- Privacy message -->
<div class="row privacy">
<div class="col-sm-12 col-centered">
<div class="h4 text-primary">
<div class="{{ aSurveyInfo.class.privacycontainer }}" {{ aSurveyInfo.attr.privacycontainer }}>
<div class="{{ aSurveyInfo.class.privacycol }}" {{ aSurveyInfo.attr.privacycol }}>
<div class="{{ aSurveyInfo.class.privacyhead }}" {{ aSurveyInfo.attr.privacyhead }}>
{{ "This survey is anonymous." | t }}
</div>
<div>
<p class="ls-privacy-body">
<p class="{{ aSurveyInfo.class.privacybody }}" {{ aSurveyInfo.attr.privacybody }}>
{{
"The record of your survey responses does not contain any identifying information about you, unless a specific survey question explicitly asked for it."
| t
}}
</p>
<p class="ls-privacy-body">
<p class="{{ aSurveyInfo.class.privacybody }}">
{{
"If you used an identifying token to access this survey, please rest assured that this token will not be stored together with your responses. It is managed in a separate database and will only be updated to indicate whether you did (or did not) complete this survey. There is no way of matching identification tokens with survey responses."
| t
Expand Down

0 comments on commit 385b156

Please sign in to comment.