Skip to content

Commit

Permalink
Dev: prepared assessment.twig
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Feb 23, 2017
1 parent 38c6113 commit 3affe07
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
7 changes: 2 additions & 5 deletions application/helpers/frontend_helper.php
Expand Up @@ -1920,13 +1920,10 @@ function doAssessment($surveyid, $returndataonly=false)
}
}
}
if ($returndataonly==true)
{
if ($returndataonly==true){
$subtotal = (isset($subtotal))?$subtotal:'';
return array('total'=>$total, 'assessment' => $assessment, 'subtotal' => $subtotal, );
}
else
{
}else{
return $assessments;
}
}
Expand Down
14 changes: 14 additions & 0 deletions templates/default/views/subviews/assessment.twig
@@ -0,0 +1,14 @@

<br />
<table class="assessment-table">
<tr>
<td class="assessment-heading">
{ASSESSMENT_HEADING}
</td>
</tr>
<tr>
<td class="assessments-container">
{ASSESSMENTS}
</td>
</tr>
</table>

0 comments on commit 3affe07

Please sign in to comment.