{% extends '@ajax-layout/layout.twig' %}


{% block body %}

	<div class="tab-content">
    	<div id="signataires-attendus" class="tab-pane fade in active clearfix">
        	<form action="" method="post" name="form_signataires" id="form_signataires" class="clearfix" >
        		<table class="table sans_actions">
                	<thead class="thead-dark">
                    	<tr>
                        	<th scope="col" width="10%">{{ 'Date' | trad }}</th>
                            <th scope="col" width="35%">{{ 'Nom' | trad }}</th>                                    
                            <th scope="col">{{ 'Rôle' | trad }}</th>
                            <th scope="col">{{ 'Type' | trad }}</th>
                        </tr>
                    </thead>
                    <tbody>
        
                    {% for signataire in listeSignataire %}
                        <tr>
                            <td>{{ signataire.DTE_MISE }}</td>
                            <td>
                                {{ signataire.NOM }}
                                {% set listDeleg = mapListDelegBySignat[ signataire.CODE ] | default([]) %}
                                {% if listDeleg is not empty %}
                                    <span class="modal_information white-tooltip" style="background-size: 32%;width:50%;">
                                        <span class="infos_tooltip activeLearn">
                                            <p>{{'Délégation du signataire' | trad}} :</p> <br>
                                            {% include '@GlobalApplication/Workflow/deleg.twig' 
                                                with {listDeleg: listDeleg} only %}
                                        </span>
                                    </span>
                                {% endif %}
                            </td>
                            <td>{{ signataire.FAROLES }}</td>
                            <td>{{ signataire.INFORME | boolSql==0 ?  'Signataire' | trad: 'Informé' | trad }}</td>
                        </tr>	
                    {% endfor %}
                     </tbody>
                   </table>     	
        	</form>
         </div>
     </div>
<div class="modal-footer">
    <button type="button" class="button principal" onClick="desactivePopup();">{{ 'Fermer' | trad }}</button>
</div>
{% endblock %}