{% extends 'layout.twig' %}

{% block body %}
	<div class="contenu clearfix titre_div"  id="Commande">
	
		<h1>{{ 'Commandes' | trad }}</h1>

		{{ ariane() }}
		
		<div class="tab-content">
			<form method="post" name="filtre_modele" id="filtre_modele" class="padding-Vert15">
                <table class="table table-hover">
                  	<thead class="thead-dark">
                        <tr>
                            <th scope="col" width='7%'>{{ triTable('COD_MOD',  infoPagination.filter.tri_COD_MOD, 'Code' |trad, '', '', 'filtre_commande') }}</th>
                            <th scope="col">{{ triTable('LIB_MOD',  infoPagination.filter.tri_LIB_MOD, 'Libelle'|trad, '', '', 'filtre_commande') }}</th>
                            <th scope="col">{{ triTable('SOC',  infoPagination.filter.tri_SOC, 'Société'|trad, '', '', 'filtre_commande') }}</th>
                            <th scope="col" width='10%'>{{ triTable('DTE_CREA',  infoPagination.filter.tri_DTE_CREA, 'Date création'|trad, '', '', 'filtre_commande') }}</th>
                            <th scope="col">{{ triTable('USR_CREA',  infoPagination.filter.tri_USR_CREA, 'Auteur'|trad, '', '', 'filtre_commande') }}</th>
                            <th scope="col" width='10%'>{{ triTable('DATE_DEB',  infoPagination.filter.tri_DATE_DEB, 'Date début'|trad, '', '', 'filtre_commande') }}</th>
                            <th scope="col" width='10%'>{{ triTable('DATE_FIN',  infoPagination.filter.tri_DATE_FIN, 'Date fin'|trad, '', '', 'filtre_commande') }}</th>
                            <th scope="col" width="40px">{{ 'Actions' | trad }}</th>
                        </tr>
                  	</thead>
                  	<tbody>
                  		<tr class="recherche">
                  			<td>{{ filterTable('COD_MOD', infoPagination.filter.filter_COD_MOD, '', '', '', 'filtre_modele', '', '') }}</td>
                  			<td>{{ filterTable('LIB_MOD', infoPagination.filter.filter_LIB_MOD, '', '', '', 'filtre_modele', '', '') }}</td>
                  			<td>{{ zoomFilter('SOC', infoPagination.filter['filter_SOC'], '', 'filtre_modele', path('Ajax.liste.societe'), 'Liste des sociétés' | trad, '','', 'Société' | trad,'','','Societe') }}</td>
                  			<td>{{ filterTable('date_DTE_CREA', infoPagination.filter.filter_date_DTE_CREA, '', '', '','filtre_modele', 'date','Créé le') }}</td>
                  			<td>{{ zoomFilter('USR_CREA', infoPagination.filter['filter_USR_CREA'], '', 'filtre_modele', path('Ajax.liste.utilisateur'), 'Liste des auteurs' | trad, '','', 'Auteur' | trad,'','','Hastutil') }}</td>
                  			<td>{{ filterTable('date_DATE_DEB', infoPagination.filter.filter_date_DATE_DEB, '', '', '','filtre_modele', 'date','Date début') }}</td>
                  			<td>{{ filterTable('date_DATE_FIN', infoPagination.filter.filter_date_DATE_FIN, '', '', '','filtre_modele', 'date','Date fin') }}</td>
                  			<td></td>
                  		</tr>
                  	</tbody>
                  	{% for modele in listeModele %}
                  		<tr id="modele{{ loop.index }}">
                  			<td>{{ modele.COD_MOD }}</td>
                  			<td>{{ modele.LIB_MOD }}</td>
                  			<td>{{ modele.RAIS_SOC }} {% if modele.SOC %}({{ modele.SOC }}){% endif %}</td>
                  			<td>{{ modele.DTE_CREA | dateTrad }}</td>
                  			<td>{{ modele.NOM }} {% if modele.USR_CREA %}({{ modele.USR_CREA }}){% endif %}</td>
                  			<td>{{ modele.DATE_DEB | dateTrad }}</td>
                  			<td>{{ modele.DATE_FIN | dateTrad }}</td>
                  			<td class="parametrage">
                  			    {{ menuContextuel('modele'~loop.index, false, modele.menuContextuel) }}
                  			</td>
                  		</tr>
                  	{% endfor %}
              	</table>
			</form>
		</div>

	</div>
<script>


</script>
{% endblock %}