{% extends 'layout.twig' %}

{% block body %}
    <!-- Modal content -->
    <div id="myModal" class="modal" tabindex="-1" role="dialog">

        <div class="modal-dialog" style="width:auto;height:auto;{% if application != 'Mobility' %}min-width:500px{% endif %}" role="document">
            <div id="modal-content" class="modal-content" style="z-index:99999;{% if application != 'Mobility' %}min-width: 600px;{% endif %}">
                <div class="modal-header">
                    <span class="modal-close">&times;</span>
                    <h3 id="modal-title"></h3>
                </div>
                <div id="modal-body" style="padding: 15px;z-index:99999">
                </div>
            </div>
        </div>
    </div>
	<div class="contenu clearfix"  id="modele">
		<h1>
			{{ 'Modèles de questionnaire' | trad }}
		</h1>
		
		{{ ariane() }}

		<h2 id="divMenu" style="position:relative;">
			{{ modele.LIB_MODEL }} {{ 'créé le' | trad }} {{ modele.DTE_CREAT | dateTrad }}  {{ 'par' | trad }} {{ modele.CREATOR }} 
			{{ hover_action('modele', 'menu_contextuel_v2' , 'roueDenteActive(this);', 'float: right;') }}

			<ul class="ss_parametres" style="display: none;">
				{% if droits.HA_MQUESCM  %}
                    <li>
                        <a class="edit" href="{{ path('Evaluation.Model.createEdit', {id : modele.ID_MODEL }) }}">
                            {{ 'Modifier' | trad }}
                        </a>
                    </li>
                    <li>
                        <a class="delete" onClick="popupConfirmation(
                            '{{ path('Ajax.Erreur.popupConfirmationGestion') }}', 
                            'reload', 
                            '{{ path('Evaluation.Model.suppression', {id : modele.ID_MODEL}) }}',
                            '{{ strBuild('Voulez-vous supprimer le modèle @1@\xc2\xa0?' | trad, [modele.LIB_MODEL]) | e('js') | raw }}', 
                            'divRefresh', '', '', '', '', '', '', '', '', '', 
                            '{{ 'Suppression modèle' | trad }}')"
                        >{{ 'Supprimer' | trad }}</a>
                    </li>
				{% endif %}
			</ul>
		</h2>
        <div class="tab-content">
            <div class="padding15">
                {% include '@Evaluation/Modele/entete.twig' %}
			<div style="margin-top:15px;">
				{% include '@Evaluation/Modele/Tabs/' ~ tab ~ '.twig' %}
            </div>
        </div>
	</div>
{% endblock %}