Skip to content

Commit

Permalink
Dev: added few comments
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Jan 9, 2017
1 parent 33e4c7f commit 657ce0b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions templates/default/views/subviews/question_index.twig
Expand Up @@ -18,6 +18,7 @@
</a>

<ul class="dropdown-menu">
{# TODO: move back this logic to SurveyRuntime, and provide a ready to use indexItem.statusClass #}
{% for step, indexItem in aSurveyInfo.indexItems %}
{% set statusClass = '' %}
{% if attribute(indexItem.stepStatus, 'index-item-unanswered') is defined and attribute(indexItem.stepStatus, 'index-item-unanswered') == true %}
Expand All @@ -43,13 +44,15 @@

{# Question index in question by question mode #}
{% if aSurveyInfo.format == 'S' %}
<!-- Question index, question by question, {{ indexType }} -->
<li class="dropdown ls-index-menu ls-no-js-hidden index-menu-{{ indexType }}">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
{{ "Question index" | t }}
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
{% for group in aSurveyInfo.indexItems %}
{# TODO: move back this logic to SurveyRuntime, and provide a ready to use indexItem.statusClass #}
<li>
<div class="dropdown-header">
{{ flatEllipsizeText(group.text, true, 30, " &hellip; ", 0.6 ) | raw }}
Expand Down

0 comments on commit 657ce0b

Please sign in to comment.