{% extends 'layout.html.twig' %} {% block title %}{{ parent() }} - {{ film.titre }}{% endblock %} {% block body %}
{% if film.imageName %} {% endif %}

{{ film.imageName | removeext }}

{{ film.titre }}

{# Réalisateurs#} {% if film.realisateurs is not empty %} Réalisé par {% for realisateur in film.realisateurs %} {{ realisateur.nom }}{% if loop.last == false %}, {% endif %} {% endfor %} {% endif %} {# Titre VO #} {% if film.titrevo %} | {{ film.titrevo }} {% endif %} {# Année#} {% if film.annee %} | {{ film.annee }} {% endif %} {# Durée#} {% if film.duree %} | {{ film.duree }} {% endif %} {# Pays coprod#} {% if film.payscoprod is not empty %} | {% for pays in film.payscoprod %} {{ pays|country }}{% if loop.last == false %}, {% endif %} {% endfor %} {% endif %}

{{ film.cycleprincipal }}

{% for cyclesec in film.cycles %}

{{ cyclesec }}

{% endfor %}
  • {{ film.genre }} | {{ film.leformat }}
  • {{ film.classification }}
  • {% if film.tarif %}Tarif : {{ film.tarif }} {% else %} Tarif habituel {% endif %}

Avec : {{ film.casting | raw }}

{{ film.description | raw }}

{% if film.video %}
{{ film.video|videopreview|raw }}
{% endif %}

Séances

{% set current_date = "now"|date("Y-m-d") %} {% set nb_seances = 0 %} {% for seance in film.seances %} {% if seance.horaire|date("Y-m-d") > current_date %} {% set nb_seances = nb_seances + 1 %}

{{ seance.horaire | localizeddate('none', 'none', null, null, 'eeee dd LLLL YYYY') }}

{{ seance.horaire | localizeddate('none', 'short') }}


{{ seance.laversion }}

{% if seance.billetterie %}

Billetterie

{% endif %}
{% endif %} {% endfor %} {% set nb_seances_vide = 6 - nb_seances %} {% for i in 1..nb_seances_vide %}
{% endfor %}

Cycle : {{ film.cycleprincipal }}

{% for autrefilm in film_a_venir_du_meme_cycle %}

{{ autrefilm.titre }}

{% endfor %}
{% endblock %}