{% extends 'layout.twig' %}

{% block body %}
<section class="contenu clearfix"  id="listeFormat">
	<h1>
		{{ 'Catalogues externes' | trad }}
	</h1>
		
    {{ ariane() }}

	<div class="tab-content" id="tab-content">

        <h2>
            {% if idVersion %}
                {{ 'Affectation des types article du catalogue' | trad }} : {{ infoCata.DESCRIPTION_CATA }} ({{ infoCata.ID_CATAL }})
            {% else %}
                {{ 'Affectation globale des types articles' | trad }}
            {% endif %}

    </h2>

        <form method="post" name="form_finalsubmit" id="form_finalsubmit" class="clearfix">
            <span id="countSelected">
            </span>

            <div class="colonne2 row">
                {{ inputAdvance('SWITCH', {
                    'titre' : 'avec RAZ des caractéristiques actuelles' | trad,
                    'name' : 'RAZ',
                    'value' : true,
                }) }}
            </div>
            <div class="colonne2 last" style="width: 51% !important;">
                <button type="button" class="button btn principal pointer" style="margin-right:0px;" onClick="ajaxPopupV2('{{ path('Catalogue.AffectationTypeArticle.ajaxAppliquerChangement', {idVersion:idVersion}) }}', 'form_finalsubmit');">{{ 'Appliquer les changements' | trad }}</button>
            </div>
            
        </form>
        {{ arianeSub() }}



        {% include '@catalogue/AffectationTypeArticle/_sfam.twig' %}

        {% include '@catalogue/AffectationTypeArticle/_gamme.twig' %}

        
    </div>
</section>


{% endblock %}