{% extends 'layout.twig' %}

{% block body %}

	<div class="contenu clearfix"  id="Consultation">
	
		<h1>{{ 'Consultations' | trad }}</h1>
		
		{{ ariane() }}

		<header class="bs-row">
			<h2 class="bs-col" style="position:relative;">
				{{ consultation.OBJET_AO }} {{ 'créé le' | trad }} {{ consultation.DTE_AO | dateTrad }} {% if AOEventCreat.NOM %} {{ 'par' | trad }} {{ AOEventCreat.NOM }} {% endif %}

				
			</h2>
			<div class="bs-col text-right">
				{{ menuContextuel(false, false, menuContextuel, 5) }}
			</div>
		</header>

    	<div class="tab-content">
        	<div class="padding15">
        	
            {% include '@Consultation/Consultation/block_entete.twig' with {withNavbar: true} %}

			<div>
    	    	{% if onglet == '' %}
        	        {% include '@Consultation/Consultation/tab_Ligne.twig' with {withNavbar: true} %}
        		{% else %}
        		    {% include '@Consultation/Consultation/tab_'~onglet~'.twig' with {withNavbar: true} %}      
            	{% endif %}
        	</div>
        	
    	</div>
		
	</div>

	<script>
		$(document).on("click", "#btn_close", function () {
				window.location = window.location.href;
		});
	</script>

	{{ specifique('Consultation\\ConsultationActions', 'generateConsolidationLink', {container: container, consultation: consultation}) }}
{% endblock %}