{#
    LimeSurvey
    Copyright (C) 2007-2017 The LimeSurvey Project Team / Louis Gac
    All rights reserved.
    License: GNU/GPL License v2 or later, see LICENSE.php
    LimeSurvey is free software. This version may have been modified pursuant
    to the GNU General Public License, and as distributed it includes or
    is derivative of works licensed under the GNU General Public License or
    other free or open source software licenses.
    See COPYRIGHT.php for copyright notices and details.



    (¯`·._.·(¯`·._.· Question Container  ·._.·´¯)·._.·´¯)

    The div containing the question is one of tag that could often change from a template to another
    Different classes, options, etc
    So we separate it
#}
{# Some var globally used #}
{% set tagSection = 'div' %}
{% set tagHeader = 'div' %}
{% if ( aSurveyInfo.options.questionhtag == 'on' ) %}
    {% set tagSection = 'section' %}
    {% set tagHeader = 'header' %}
{% endif %}
{% set questioncolor = '' %}
{% set questioncontainerclass = '' %}
{% if ( aSurveyInfo.options.questioncolor and aSurveyInfo.options.questioncolor !='none' ) %}
    {% set questioncolor = aSurveyInfo.options.questioncolor %}
{% endif %}
{% if ( aSurveyInfo.options.questionwrap =='well' ) %}
    {% set questioncontainerclass = 'well well-sm' %}
{% endif %}
{% set panel = false %}
{% if ( aSurveyInfo.options.questionwrap =='panel' ) %}
    {% set panel = true %}
    {% if ( questioncolor ) %}
        {% set questioncontainerclass = 'panel panel-'~questioncolor %}
        {% set questioncolor = '' %}
    {% else %}
        {% set questioncontainerclass = 'panel panel-default' %}
    {% endif %}
{% else %}
    {% set questioncolor = 'text-'~questioncolor %}
{% endif %}
<!-- Question {{ aQuestion.qid  }}  -->
<{{ tagSection }} {{ aQuestion.attributes }} class="{{ questioncontainerclass }} {{ aQuestion.class }} {% if aQuestion.input_error_class %}submitted-error{% endif %} {{ aSurveyInfo.class.questioncontainer }}" {{ aSurveyInfo.attr.questioncontainer }}>
    {{ include('./subviews/survey/question.twig') }}
</{{ tagSection }}>
<!-- End of question  {{ aQuestion.qid  }}  -->
