Skip to content

Commit

Permalink
Dev: replaced {QUESTION_NUMBER} by twig logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Jan 16, 2017
1 parent abc2668 commit 5e8f480
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions templates/default/views/question.twig
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,24 @@
{{ dump(aSurveyInfo.aQuestion) }}
#}


{% set aShow = aSurveyInfo.aShow %}

<div id="question{{ aSurveyInfo.aQuestion.qid }}" class=" {{ getAllQuestionClasses( aSurveyInfo.aQuestion.qid ) }} {{ aSurveyInfo.aQuestion.0.input_error_class }} question-container row">

<!-- Question text -->
<div class="question-title-container bg-primary col-xs-12">

{{ include('./subviews/question/question_mandatory.twig') }}
{{ include('./subviews/question/question_mandatory.twig') }}

{% if (aShow.question_number) %}
<span class='text-muted question-number'>
{{ aSurveyInfo.aQuestion.number }}
</span>
{% endif %}

<span class='text-muted question-number'>{QUESTION_NUMBER}</span>
<span class='text-muted question-code'>{QUESTION_CODE}</span>
<div class="question-text">{QUESTION_TEXT}</div>
<span class='text-muted question-code'>{QUESTION_CODE}</span>
<div class="question-text">{QUESTION_TEXT}</div>
</div>

<!-- LimeSurvey valid message and help -->
Expand Down

0 comments on commit 5e8f480

Please sign in to comment.