{% extends 'base.html.twig' %} {% block title %}Liste des représentations{% endblock %} {% block titre_page %}Liste des représentations{% endblock %} {% block resume_page %}Représentations passées et futures{% endblock %} {% block description_page %} {% set presence = constant('App\\Constants\\ReponsePresence::PRESENT') %} : {{ presence.label }}
{% set presence = constant('App\\Constants\\ReponsePresence::SUPPLEENT') %} : {{ presence.label }}
{% set presence = constant('App\\Constants\\ReponsePresence::ABSENT') %} : {{ presence.label }}
{% set presence = constant('App\\Constants\\ReponsePresence::NE_SAIT_PAS') %} : {{ presence.label }} ainsi que les non répondus
{% endblock %} {% block body %}
{% if derniereRepresentation %}
Dernière représentation
{% if derniereRepresentation.spectacle.image %} {% endif %}
{{ derniereRepresentation.spectacle.name }}
Le {{ derniereRepresentation.date|date('d/m/y') }} à {{ derniereRepresentation.heure|date('H:i') }}
{% endif %} {% if prochaineRepresentation %}
Prochaine représentation
{% if prochaineRepresentation.spectacle.image %} {% endif %}
{{ prochaineRepresentation.spectacle.name }}
Le {{ prochaineRepresentation.date|date('d/m/y') }} à {{ prochaineRepresentation.heure|date('H:i') }}
{{ prochaineRepresentation.presences|presence('PRESENT')|length }} {% set presence = constant('App\\Constants\\ReponsePresence::PRESENT') %}   {{ prochaineRepresentation.presences|presence('SUPPLEENT')|length }} {% set presence = constant('App\\Constants\\ReponsePresence::SUPPLEENT') %}   {{ prochaineRepresentation.presences|presence('ABSENT')|length }} {% set presence = constant('App\\Constants\\ReponsePresence::ABSENT') %}   {{ prochaineRepresentation.presences|presence('NE_SAIT_PAS')|length + prochaineRepresentation.presences|presence(null)|length }} {% set presence = constant('App\\Constants\\ReponsePresence::NE_SAIT_PAS') %}
{% endif %}
Liste des prochaines représentations
{% for representation in prochainesRepresentations %} {% endfor %}
Spectacle Date Salle Infos Action
{% if representation.spectacle.image %} {% endif %} {% if representation.date|date('ymd')|number_format < "now"| date('ymd')|number_format %} {{ representation.spectacle.name }} {% else %} {{ representation.spectacle.name }} {% endif %}
{{ representation.spectacle.description }}
{{ representation.date|date('d M Y') }} à {{ representation.heure|date('H:i') }} {% if representation.heureRdv %}
Rendez-vous à {{ representation.heureRdv|date('H:i') }} {% endif %}
{% if representation.salle %} {{ representation.salle.name }}
{{ representation.salle.address }} {% else %} Non défini {% endif %}
{{ representation.presences|presence('PRESENT')|length }} {% set presence = constant('App\\Constants\\ReponsePresence::PRESENT') %}
{{ representation.presences|presence('SUPPLEENT')|length }} {% set presence = constant('App\\Constants\\ReponsePresence::SUPPLEENT') %}
{{ representation.presences|presence('ABSENT')|length }} {% set presence = constant('App\\Constants\\ReponsePresence::ABSENT') %}
{{ representation.presences|presence('NE_SAIT_PAS')|length + representation.presences|presence(null)|length }} {% set presence = constant('App\\Constants\\ReponsePresence::NE_SAIT_PAS') %}
{% if representation.date|date('ymd')|number_format < "now"| date('ymd')|number_format %}
{% else %}
{% endif %}
Liste des anciennes représentations
{% for representation in anciennesRepresentations %} {% endfor %}
Spectacle Date Salle Infos Action
{% if representation.spectacle.image %} {% endif %} {% if representation.date|date('ymd')|number_format < "now"| date('ymd')|number_format %} {{ representation.spectacle.name }} {% else %} {{ representation.spectacle.name }} {% endif %}
{{ representation.spectacle.description }}
{{ representation.date|date('d M Y') }} à {{ representation.heure|date('H:i') }} {% if representation.heureRdv %}
Rendez-vous à {{ representation.heureRdv|date('H:i') }} {% endif %}
{% if representation.salle %} {{ representation.salle.name }}
{{ representation.salle.address }} {% else %} Non défini {% endif %}
{{ representation.presences|presence('PRESENT')|length }} {% set presence = constant('App\\Constants\\ReponsePresence::PRESENT') %}
{{ representation.presences|presence('SUPPLEENT')|length }} {% set presence = constant('App\\Constants\\ReponsePresence::SUPPLEENT') %}
{{ representation.presences|presence('ABSENT')|length }} {% set presence = constant('App\\Constants\\ReponsePresence::ABSENT') %}
{{ representation.presences|presence('NE_SAIT_PAS')|length + representation.presences|presence(null)|length }} {% set presence = constant('App\\Constants\\ReponsePresence::NE_SAIT_PAS') %}
{% if representation.date|date('ymd')|number_format < "now"| date('ymd')|number_format %}
{% else %}
{% endif %}
{% endblock %} {% block modals %} {% endblock %} {% block javascripts %} {% endblock %}