Skip to content

Commit

Permalink
Dev: comment + quick fix on layout_clearall
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Apr 19, 2017
1 parent 7178c9c commit 61c8a9d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
9 changes: 0 additions & 9 deletions application/helpers/SurveyRuntimeHelper.php
Expand Up @@ -1614,15 +1614,6 @@ private function manageClearAll()

killSurveySession($this->surveyid);

//TODO TWIG

/***
$content = templatereplace(file_get_contents($this->sTemplateViewPath."clearall.pstpl"),array());
App()->getController()->layout = 'survey';
App()->getController()->render("/survey/system/display",array('content'=>$content));
*/

global $token;
if($token){
$restartparam['token']=sanitize_token($token);
Expand Down
7 changes: 6 additions & 1 deletion templates/default/views/layout_clearall.twig
Expand Up @@ -8,6 +8,11 @@
is derivative of works licensed under the GNU General Public License or
other free or open source software licenses.
See COPYRIGHT.php for copyright notices and details.
(¯`·._.·(¯`·._.· Clear All Layout ·._.·´¯)·._.·´¯)
This is what is shown when user cleared the survey (only show "Restart this survey")
NOTE: It probably doesn't need to be a separated layout.
#}
<!DOCTYPE html>
<html lang="{{ aSurveyInfo.languagecode }}" dir="{{ aSurveyInfo.dir }}" class="no-js {{ aSurveyInfo.languagecode }} dir-{{ aSurveyInfo.dir }} ">
Expand All @@ -30,7 +35,7 @@

<div class='return-to-survey'>
<div class="url-wrapper url-wrapper-survey-return">
<a href="{{ aSurveyInfo.surveyUrl }}" class="ls-return">{{ "Restart this Survey" }}</a>
<a href="{{ aSurveyInfo.surveyUrl }}" class="ls-return">{{ "Restart this Survey" | t}}</a>
</div>
</div>
</div>
Expand Down

0 comments on commit 61c8a9d

Please sign in to comment.