Skip to content

Commit

Permalink
Dev: use mandatory in question.twig
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Jan 16, 2017
1 parent f673558 commit b0a772f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion templates/default/views/question.twig
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@
<!-- Question text -->
<div class="question-title-container bg-primary col-xs-12">

{{ include('./subviews/question/question_mandatory.twig') }}
{% if aQuestion.mandatory != '' %}
<!-- Add a visual information + just Mandatory string for aria : can be improved -->
<div class="asterisk pull-left">
<small class="text-danger fa fa-asterisk small" aria-hidden='true'></small>
<span class="sr-only text-danger"> {{ "(This question is mandatory)" | t }} </span>
</div>
{% endif %}

{% if (aShow.question_number) %}
<span class='text-muted question-number'>
Expand Down

0 comments on commit b0a772f

Please sign in to comment.