Skip to content

Commit

Permalink
Dev: render completed
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Jun 2, 2017
1 parent 7b4d372 commit 88cd984
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions application/controllers/admin/templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -1271,7 +1271,7 @@ protected function _initialise($templatename, $screenname, $editfile, $showsumma
$myoutput[] = "\n";
*/
$myoutput = Yii::app()->twigRenderer->renderTemplateFromFile("layout_load.twig", array('aSurveyInfo'=>$thissurvey), true);
$myoutput = Yii::app()->twigRenderer->renderTemplateFromFile("layout_load.twig", array('aSurveyInfo'=>$thissurvey), true);
break;

case 'clearall':
Expand All @@ -1287,13 +1287,16 @@ protected function _initialise($templatename, $screenname, $editfile, $showsumma
break;

case 'completed':
/*
$aData['aReplacements'] = $aGlobalReplacements;
$files=$CompletedTemplate;
$myoutput[] = "";
foreach ($files as $qs)
{
$myoutput = array_merge($myoutput, doreplacement($oEditedTemplate->viewPath . "/$qs", $aData, $oEditedTemplate));
}
}*/
$thissurvey['aCompleted']['showDefault'] = true;
$myoutput = Yii::app()->twigRenderer->renderTemplateFromFile("layout_submit.twig", array('aSurveyInfo'=>$thissurvey), true);
break;
case 'printablesurvey':
$aData['aReplacements'] = $aGlobalReplacements;
Expand Down

0 comments on commit 88cd984

Please sign in to comment.