{#
 # ExoOnLine
 # Copyright or © or Copr. Université Jean Monnet (France), 2012
 # dsi.dev@univ-st-etienne.fr
 #
 # This software is a computer program whose purpose is to [describe
 # functionalities and technical features of your software].
 #
 # This software is governed by the CeCILL license under French law and
 # abiding by the rules of distribution of free software.  You can  use,
 # modify and/ or redistribute the software under the terms of the CeCILL
 # license as circulated by CEA, CNRS and INRIA at the following URL
 # "http://www.cecill.info".
 #
 # As a counterpart to the access to the source code and  rights to copy,
 # modify and redistribute granted by the license, users are provided only
 # with a limited warranty  and the software's author,  the holder of the
 # economic rights,  and the successive licensors  have only  limited
 # liability.
 #
 # In this respect, the user's attention is drawn to the risks associated
 # with loading,  using,  modifying and/or developing or reproducing the
 # software by the user in light of its specific status of free software,
 # that may mean  that it is complicated to manipulate,  and  that  also
 # therefore means  that it is reserved for developers  and  experienced
 # professionals having in-depth computer knowledge. Users are therefore
 # encouraged to load and test the software's suitability as regards their
 # requirements in conditions enabling the security of their systems and/or
 # data to be ensured and,  more generally, to use and operate it in the
 # same conditions as regards security.
 #
 # The fact that you are presently reading this means that you have had
 # knowledge of the CeCILL license and that you accept its terms.
#}

<div class="form-group row">
    {{ form_label(form.interaction.question.title) }}
    <div class="col-md-9">{{ form_widget(form.interaction.question.title) }}</div>
</div>

<br><hr><br>

<div>
    <div class="form-group row">
        <label class="control-label col-md-3">{{ 'category' | trans }}</label>
        <div class="col-md-9">
            {{ form_widget(form.interaction.question.category) }}
            {{ form_errors(form.interaction.question.category) }}
        </div>
    </div>
    <a class="btn btn-primary" onclick="openCat('{{ path('ujm_category_new_pop', {'edit': 1} ) }}');"><i class="fa fa-pencil"></i> {{ 'alter category' | trans }}</a>
    <a class="btn btn-primary" onclick="openCat('{{ path('ujm_category_new_pop') }}');"><i class="fa fa-plus"></i> {{ 'create a new category' | trans }}</a>
    <a id="linkedCategory" style="display: none;" class="btn btn-primary" id="lien_category_drop" onclick="dropCategory();"><i class="fa fa-trash-o"></i> {{ 'drop category' | trans }}</a>
</div>

<br><hr><br>

<div>
    <a class="btn btn-primary" data-toggle="collapse" data-target="#collepsedescription">
        <i class="fa fa-pencil"></i> {{ 'Question.description' | trans }}
    </a>
    <div id="collepsedescription" class="list-group collapse">
        <div class="list-group-item">{{ form_widget(form.interaction.question.description) }}</div>
    </div>
</div>

<br><hr><br>

<div>
    <label class="control-label col-md-3">{{ 'question' | trans }}</label>
    <br><br>
    {{ form_widget(form.interaction.invite) }}
</div>

<br><hr><br>

<div>
    <a class="btn btn-primary" data-toggle="collapse" data-target="#collepseinteraction">
        <i class="fa fa-pencil"></i> {{ 'Interaction.feedback' | trans }}
    </a>
    <div id="collepseinteraction" class="list-group collapse">
        <div class="list-group-item">{{ form_widget(form.interaction.feedBack) }}</div>
    </div>
</div>

<br><hr><br>

<div id="divHint" class="panel-body">
    <div id="hintError"></div>
    <div id="tableHint"></div>
    {{ form_widget(form.interaction.hints) }}
    {{ form_errors(form.interaction.hints) }}
</div>

<br><hr><br>

<input type="hidden" id="pathDrop" value="{{ path('ujm_category_drop') }}"/>

<script type="text/javascript" src="{{ asset('bundles/ujmexo/js/allQuestionsType.js') }}"></script>