{% extends 'rsl.html.twig' %} {% block title_start %} {% if emission is defined or emission is not null %} {{ emission.getName }} {% else %} Emission {% endif %} {% endblock %} {% block stylesheets %} {{ parent() }} {{ encore_entry_link_tags('emission_detail') }} {% endblock %} {% block main %}
{% if emission %}
{% if emission.imageFileName is empty %} image-logo-rsl {% else %} image {{ emission.getName }} {% endif %}

{{ emission.getName }}

{{ emission.getDescription|raw }}

{% if emission.getEmissionHoraire %}

Heure

{% for horaire in emission.getEmissionHoraire %}

{{ horaire.getJour.getFrName }} {{ horaire.getHeureDebut|date('H:i') }} - {{ horaire.getHeureFin|date('H:i') }}

{% endfor %}
{% endif %}
{% if emission.podcast is defined and emission.podcast is not empty and emission.podcast is not null %}
{% for podcast in podcasts %}

{{ podcast.getName }}

{#

{{ podcast.getEmission.getName }}

#}

{{ podcast.getDescription }}

{{ podcast.getDate|date("d/m/Y") }}

{% endfor %}
{{ knp_pagination_render(podcasts) }}
{% endif %} {% endif %}
{% endblock %} {% block javascripts %} {{ parent() }} {{ encore_entry_script_tags('emission_detail') }} {% endblock %}