Skip to content

Commit

Permalink
Dev: filled top_container.twig
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Jan 17, 2017
1 parent 531e6d3 commit 1544fe4
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions templates/default/views/subviews/top_container.twig
Expand Up @@ -2,13 +2,18 @@
Show the progress bar
#}

{% if aSurveyInfo.format != 'A' and aSurveyInfo.showprogress is defined and aSurveyInfo.showprogress == 'Y' %}
{{ registerPublicCssFile('lime-progress.css') }}
<!-- Top container -->
<div class="top-container">
<div class="container top-content">
{% 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 )%}
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="{{ progressValue }}" aria-valuemin="0" aria-valuemax="100" style="min-width: 2em; width: {{ progressValue }}%;">
{{ progressValue }}%
</div>
</div>
{% endif %}
{% set progressValue = intval( (aSurveyInfo.progress.currentstep - 1) / aSurveyInfo.progress.total * 100 )%}
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="{{ progressValue }}" aria-valuemin="0" aria-valuemax="100" style="min-width: 2em; width: {{ progressValue }}%;">
{{ progressValue }}%
</div>
</div>
{% endif %}
</div> <!-- must hide it without javascript -->
</div>

0 comments on commit 1544fe4

Please sign in to comment.