{% if liste_favoris| length > 0 %}
	<div id="mes_favoris">
		{% if popup == false %}
		<h2 class="border-bottom">{{ 'Vos Favoris' | trad }}</h2>
		{% endif %}
		<div class="scroll_favoris">
			{% set last_favoris = '' %}
			{% for favoris in liste_favoris %}
				{% if last_favoris != favoris.SIEX_THE %}
					{% set last_favoris = favoris.SIEX_THE %}
						{% if loop.index > 1 %}
        					</div></div>
    					{% endif %}
						<div class="favoris-card">
            				<div class="card-header" id="heading{{ loop.index }}"  id="buttonCollapseFA" data-toggle="collapse" data-target="#collapse{{ loop.index }}" aria-expanded="true" aria-controls="collapse{{ loop.index }}">
            					<p class="gras titre_favoris">
            						{{ favoris.SIEX_THE }}
            						<span class="glyphicon glyphicon-chevron-down"></span>
            					</p>
            				</div>
            				<div  id="collapse{{ loop.index }}" class="collapse {% if loop.index==1 %}in{% endif %}" aria-labelledby="heading{{ loop.index }}" data-parent="#mes_favoris">
				{% endif %}
    				<a href="{{ favoris.SIEX_URL }}" target="_blank">
    					<img {% if favoris.SIEX_ICO and favoris.SIEX_ICO != ' ' %}src="{{ updateImageFromSource(favoris.SIEX_ICO) }}"{% endif %} width="80" style="float:left;">
    					<p>
							<span>{{ favoris.SIEX_NOM }}</span>
							{{- ' ' ~ favoris.CONTMEMO  -}}
						</p>
    					
    				</a>
			{% endfor %}
			{% if liste_favoris %}
				</div>
				</div>
			{% endif %}
		</div>
	</div>
	
	{% if popup %}
    	<style>
            .scroll_favoris {
              max-height: 500px;
              overflow: auto;
              height: auto;
            }
    	</style>
    	<script>
    		$("#modal-title").html('{{ 'Vos Favoris' | trad }}');
    	</script>
	{% endif %}
	
{% endif %}