Skip to content

Commit

Permalink
Dev: fixed survey mode value for progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Jan 11, 2017
1 parent 4eb71c4 commit 437504e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion templates/default/views/subviews/percent_complete.twig
@@ -1,4 +1,8 @@
{% if aSurveyInfo.format != 'S' and aSurveyInfo.showprogress is defined and aSurveyInfo.showprogress == 'Y' %}
{#
Show the progress bar
#}

{% if aSurveyInfo.format != 'A' and aSurveyInfo.showprogress is defined and aSurveyInfo.showprogress == 'Y' %}
{{ registerPublicCssFile('lime-progress.css') }}

{% set progressValue = intval( (aSurveyInfo.progress.currentstep - 1) / aSurveyInfo.progress.total * 100 )%}
Expand Down

0 comments on commit 437504e

Please sign in to comment.