<ul class="lsNone mb-5">
{% if post.contact1 is not null %}
<li>
{% set description = null %}
{% if post.contact1.civilite == "Mr" %}
{% set description = "Conseiller départemental" %}{% else %}
{% set description = "Conseillère départementale" %}{% endif %}
{% include 'Nordinfo/Main/parts/card.html.twig' with {
'type' : 'contact',
'url' : path('contact_detail', {'slug': post.contact1.slug}),
'title' : post.contact1.firstName ~ ' ' ~ post.contact1.lastName,
'description' : description~' - '~post.contact1.shortDescription,
'img_src' : asset('upload/images/'~post.contact1.picture)
} %}
</li>
{% endif %}
{% if post.contact2 is not null %}
<li>
{% set description = null %}
{% if post.contact2.civilite == "Mr" %}
{% set description = "Conseiller départemental" %}{% else %}
{% set description = "Conseillère départementale" %}{% endif %}
{% include 'Nordinfo/Main/parts/card.html.twig' with {
'type' : 'contact',
'url' : path('contact_detail', {'slug': post.contact2.slug}),
'title' : post.contact2.firstName ~ ' ' ~ post.contact2.lastName,
'description' : description~' - '~post.contact2.shortDescription,
'img_src' : asset('upload/images/'~post.contact2.picture)
} %}
</li>
{% endif %}
{% if post.contact3 is not null %}
<li>
{% set description = null %}
{% if post.contact3.civilite == "Mr" %}
{% set description = "Conseiller départemental" %}{% else %}
{% set description = "Conseillère départementale" %}{% endif %}
{% include 'Nordinfo/Main/parts/card.html.twig' with {
'type' : 'contact',
'url' : path('contact_detail', {'slug': post.contact3.slug}),
'title' : post.contact3.firstName ~ ' ' ~ post.contact3.lastName,
'description' : description~' - '~post.contact3.shortDescription,
'img_src' : asset('upload/images/'~post.contact3.picture)
} %}
</li>
{% endif %}
{% if post.organisation1 is defined and post.organisation1 is not null %}
<li>
{% include 'Nordinfo/Main/parts/card.html.twig' with {
'type' : 'organisation',
'is_map' : post.affichageTypeMap,
'organization' : post.organisation1
} %}
</li>
{% endif %}
{% if post.organisation2 is defined and post.organisation2 is not null %}
<li>
{% include 'Nordinfo/Main/parts/card.html.twig' with {
'type' : 'organisation',
'is_map' : post.affichageTypeMap2,
'organization' : post.organisation2
} %}
</li>
{% endif %}
{% if post.organisation3 is defined and post.organisation3 is not null %}
<li>
{% include 'Nordinfo/Main/parts/card.html.twig' with {
'type' : 'organisation',
'is_map' : post.affichageTypeMap3,
'organization' : post.organisation3
} %}
</li>
{% endif %}
{% if post.organisation4 is defined and post.organisation4 is not null and post.type.type != 'event'%}
<li>
{% include 'Nordinfo/Main/parts/card.html.twig' with {
'type' : 'organisation',
'is_map' : true,
'organization' : post.organisation4,
'is_organization_4' : true
} %}
</li>
{% endif %}
{% if event_lieu is defined and event_lieu is not null %}
<li>
{% include 'Nordinfo/Main/parts/card.html.twig' with {
'type' : 'organisation',
'is_map' : true,
'organization' : event_lieu~', '~event_adresse,
'is_organization_4' : true
} %}
</li>
{% endif %}
{% if post.documentName1 is not null %}
<li>
{% include 'Nordinfo/Main/parts/card.html.twig' with {
'type' : 'resource',
'url' : asset('upload/documents/'~post.documentName1),
'title' : post.documentName1
} %}
</li>
{% endif %}
{% if post.documentName2 is not null %}
<li>
{% include 'Nordinfo/Main/parts/card.html.twig' with {
'type' : 'resource',
'url' : asset('upload/documents/'~post.documentName2),
'title' : post.documentName2
} %}
</li>
{% endif %}
{% if post.documentName3 is not null %}
<li>
{% include 'Nordinfo/Main/parts/card.html.twig' with {
'type' : 'resource',
'url' : asset('upload/documents/'~post.documentName3),
'title' : post.documentName3
} %}
</li>
{% endif %}
{% if post.link1 is not null %}
<li>
{% include 'Nordinfo/Main/parts/card.html.twig' with {
'type' : 'link-external',
'url' : post.url1,
'title' : post.link1
} %}
</li>
{% endif %}
{% if post.link2 is not null %}
<li>
{% include 'Nordinfo/Main/parts/card.html.twig' with {
'type' : 'link-external',
'url' : post.url2,
'title' : post.link2
} %}
</li>
{% endif %}
{% if post.link3 is not null %}
<li>
{% include 'Nordinfo/Main/parts/card.html.twig' with {
'type' : 'link-external',
'url' : post.url3,
'title' : post.link3
} %}
</li>
{% endif %}
</ul>