<div class="modal-body">
    <table class="table table-hover">
    	<thead class="thead-dark">
        	<tr>
        		<th>{{ 'Titre' | trad }}</th>
        		<th>{{ 'Auteur' | trad }}</th>
        		<th>{{ 'Siege' | trad }}</th>
        		<th>{{ 'Date de validite' | trad }}</th>
        		<th>{{ 'Action' | trad }}</th>
        	</tr>
    	</thead>
    		
    	{% for histo in liste_histo %} 
        	<tr>
        		<td>{{ histo.TITRE | convert_encoding('UTF-8', 'ISO-8859-1') }}</td>
        		<td>{{ histo.NOM | convert_encoding('UTF-8', 'ISO-8859-1')}}</td>
        		<td>{{ histo.RAIS_SOC | convert_encoding('UTF-8', 'ISO-8859-1')}}</td>
        		<td>
        			{% if histo.DT_VALID =="0" and histo.DT_PARUT!= "0" %}
                    	Valable a partir du {{ histo.DT_PARUT | dateTrad }}
               	    {% elseif histo.DT_VALID =="" and histo.DT_PARUT== "" %}
                                                    	
                    {% elseif histo.DT_PARUT == "0" %}
    	            {% else %}
                    	Du {{ histo.DT_PARUT | dateTrad }}<br/>
    					au {{ histo.DT_VALID | dateTrad }}
    				{% endif %}
        		</td>
        		<td>
					<a class="button principal" href="{{ path('Fournisseur.DocFournisseur.downloadFichierHisto', {
						id: histo.COD_ENR,
						ordre: histo.NO_ORDRE
					}) }}" target="_blank" >
						{{- 'Télécharger' | trad -}}
					</a>
				</td>
        	</tr>	
    	{% endfor %}
    </table>
    <div class="modal-footer">
        <button type="button" id="btn_close" class="button secondaire" data-dismiss="modal" onclick="desactivePopup();">{{ 'Fermer' | trad }}</button>
    </div>    
</div>