{% block body %}

	<div id="refreshDocAtt">
    	<div class="clearfix">
    		{% if canEdit %}
    			<a class="ajouter_blanc_v2 button_v2 white-tooltip" style="float: right;" id="btnAddCompany" href="{{ path('Consultation.DocAttendu.creatEdit', {idAO: idAO}) }}">
        			<span class="infos_tooltip left">
        				{{ 'Ajouter un document' | trad }}
                    </span>
    			</a>
			{% endif %}
    	</div>
    	<table class="table table-hover tableV2">
    		<thead class="thead-dark" style="display: none;">
    			<th scope="col" colspan="5"></th>
    		</thead>
    		<tbody>
    		{% for doc in listeDocAttendu %}
        		<tr id="docAttendu_{{ doc.NUM_ORDRE }}">
        			<td width="25%">{{ doc.TITRE_DOC }}</td>
        			<td>{{ shortLibelle(doc.COMMENTAIRE, 250) }}</td>
        			<td width="100px">{% if doc.OBLIGATOIRE| boolSql %}{{ 'Obligatoire' | trad }}{% endif %}</td>
        			<td width="100px">
        				{% if canEdit %}
                            {{ hover_action('docAttendu_'~doc.NUM_ORDRE, 'modifier_v2' , "window.location.href ='"~path('Consultation.DocAttendu.creatEdit', {idAO: idAO,noOrdre: doc.NUM_ORDRE})~"'", 'float: right;margin-right:5px;') }}
				    	    {{ hover_action('docAttendu_'~doc.NUM_ORDRE, 'Supprimer_v2' , "popupConfirmation(\'"~path('Ajax.Erreur.popupConfirmationSuppresion')~"\', \'\', \'"~path('Consultation.DocAttendu.delete', {idAO: idAO,noOrdre: doc.NUM_ORDRE})~"\', \'"~('Etes-vous sûr de vouloir supprimer le document attendu' | trad |e('js')|raw)~" ?\', \'refreshDocAtt\')", 'float: right;margin-right:5px;') }}
        				{% endif %}
        			</td>
        		</tr>
    		{% endfor %}
    		</tbody>
    	</table>
	</div>

{% endblock %}