{% 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 %} {% endblock %} {% macro popover(firstname, lastname, img) %}
{% if img %}
{{ firstname|capitalize }} {% if lastname %}
{{ lastname|capitalize }} {% endif %}
{% else %}
{{ firstname|capitalize }}
{% if lastname %}
{{ lastname|capitalize }}
{% endif %}
{% endif %}
{% endmacro %} {% 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') }}
{% set presence = prochaineRepresentation|maPresence(app.user.id) %} {% if presence and presence.presence %} {% set reponse = constant('App\\Constants\\ReponsePresence::' ~ presence.presence) %} J'ai répondu : {{ reponse.label }}  Modifier {% else %}  Répondre {% endif %}
{% endif %}
Liste des prochaines représentations
{% for representation in prochainesRepresentations %} {% set presence = representation|maPresence(app.user.id) %} {% endfor %}
Spectacle Date Salle Présences
{% if representation.spectacle.image %} {% endif %} {{ representation.spectacle.name }}
{{ 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 %}
{% if representation.presences|presence('PRESENT')|length > 0 %} {% if representation.spectacle.type == constant('App\\Constants\\SpectacleType::MATCH')['code'] %} {% endif %} {% set presence = constant('App\\Constants\\ReponsePresence::PRESENT') %} {% for presenceUser in representation.presences|presence('PRESENT') %} {% set wishes = presenceUser.wishes %} {% if representation.spectacle.type == constant('App\\Constants\\SpectacleType::MATCH')['code'] %} {% endif %} {% endfor %} {% set presence = constant('App\\Constants\\ReponsePresence::SUPPLEENT') %} {% for presenceUser in representation.presences|presence('SUPPLEENT') %} {% set wishes = presenceUser.wishes %} {% endfor %}
{{ presenceUser.user.firstname ~ ' ' ~ presenceUser.user.lastName|first|upper ~ '.' }} {% if constant('App\\Constants\\RolePresence::COMEDIEN')['code'] in wishes %}
{% endif %}
{% if constant('App\\Constants\\RolePresence::MC')['code'] in wishes %}
{% endif %}
{% if constant('App\\Constants\\RolePresence::REGIE')['code'] in wishes %}
{% endif %}
{% if constant('App\\Constants\\RolePresence::BILLETERIE')['code'] in wishes %}
{% endif %}
{% if constant('App\\Constants\\RolePresence::PUBLIC')['code'] in wishes %}
{% endif %}
{% if constant('App\\Constants\\RolePresence::REFEREE')['code'] in wishes %}
{% endif %}
{% if constant('App\\Constants\\RolePresence::ASSISTANT')['code'] in wishes %}
{% endif %}
{{ presenceUser.user.firstname ~ ' ' ~ presenceUser.user.lastName|first|upper ~ '.' }} {% if constant('App\\Constants\\RolePresence::COMEDIEN')['code'] in wishes %}
{% endif %}
{% if constant('App\\Constants\\RolePresence::MC')['code'] in wishes %}
{% endif %}
{% if constant('App\\Constants\\RolePresence::REGIE')['code'] in wishes %}
{% endif %}
{% if constant('App\\Constants\\RolePresence::BILLETERIE')['code'] in wishes %}
{% endif %}
{% if constant('App\\Constants\\RolePresence::PUBLIC')['code'] in wishes %}
{% endif %}
{% else %} Personne n'est encore présent {% endif %}
Liste des anciennes représentations
{% for representation in anciennesRepresentations %} {% endfor %}
Spectacle Date Salle Infos Action
{% if representation.spectacle.image %} {% endif %} {{ representation.spectacle.name }}
{{ representation.spectacle.description }}
{{ representation.date|date('d M Y') }} à {{ representation.heure|date('H:i') }} {% if representation.salle %} {{ representation.salle.name }}
{{ representation.salle.address }} {% else %} Non défini {% endif %}
{% if representation.avis|moyenneNote is null %} Pas de note {% else %} Note : {{ representation.avis|moyenneNote|number_format(1,',',' ') }} {% endif %}
{% endblock %} {% block modals %} {% endblock %} {% block javascripts %} {% endblock %}