diff --git a/src/Bundle/ChillEventBundle/Resources/views/Event/listByPerson.html.twig b/src/Bundle/ChillEventBundle/Resources/views/Event/listByPerson.html.twig index ec9ebf76a..9096279b9 100644 --- a/src/Bundle/ChillEventBundle/Resources/views/Event/listByPerson.html.twig +++ b/src/Bundle/ChillEventBundle/Resources/views/Event/listByPerson.html.twig @@ -24,85 +24,89 @@ {% block content %}

{{ 'Events participation' |trans }}

- - - - - - - - - - - - - {% for participation in participations %} - - - - - - - +
{{ 'Date'|trans }}{{ 'Name'|trans }}{{ 'Event type'|trans }}{{ 'Role'|trans }}{{ 'Status'|trans }}
{{ participation.event.date|format_date('short') }}{{ participation.event.name }}{{ participation.event.type.name|localize_translatable_string }}{{ participation.role.name|localize_translatable_string }}{{ participation.status.name|localize_translatable_string }} -
+ {% if participations|length == 0 %} +

{{ 'Any participation for this person'|trans }}

+ {% else %} + + + + + + + + + + + + + {% for participation in participations %} + + + + + + + - - {% endfor %} + + + + {% endfor %} - -
{{ 'Date'|trans }}{{ 'Name'|trans }}{{ 'Event type'|trans }}{{ 'Role'|trans }}{{ 'Status'|trans }}
{{ participation.event.date|format_date('short') }}{{ participation.event.name }}{{ participation.event.type.name|localize_translatable_string }}{{ participation.role.name|localize_translatable_string }}{{ participation.status.name|localize_translatable_string }} +
- {% set currentPath = path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')) %} - {% set returnLabel = 'Back to %person% events'|trans({ '%person%' : currentPerson } ) %} + {% set currentPath = path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')) %} + {% set returnLabel = 'Back to %person% events'|trans({ '%person%' : currentPerson } ) %} - {% if is_granted('CHILL_EVENT_SEE_DETAILS', participation.event) %} - - - - {% endif %} + {% if is_granted('CHILL_EVENT_SEE_DETAILS', participation.event) %} + + + + {% endif %} - {% if is_granted('CHILL_EVENT_UPDATE', participation.event) - and is_granted('CHILL_EVENT_PARTICIPATION_UPDATE', participation) %} + {% if is_granted('CHILL_EVENT_UPDATE', participation.event) + and is_granted('CHILL_EVENT_PARTICIPATION_UPDATE', participation) %} -
- - -
- {% else %} + {% endif %} - {% if is_granted('CHILL_EVENT_UPDATE', participation.event) %} - - {{ 'Edit the event'|trans }} - - {% endif %} - {% if is_granted('CHILL_EVENT_PARTICIPATION_UPDATE', participation) %} - - {{ 'Edit the participation'|trans }} - - {% endif %} - - {% endif %} + {% endif %} -
-
+
+ {% endif %} {% if participations|length < paginator.getTotalItems %} {{ chill_pagination(paginator) }} diff --git a/src/Bundle/ChillEventBundle/Resources/views/Event/show.html.twig b/src/Bundle/ChillEventBundle/Resources/views/Event/show.html.twig index 3610ff9d8..7d8bf1fc0 100644 --- a/src/Bundle/ChillEventBundle/Resources/views/Event/show.html.twig +++ b/src/Bundle/ChillEventBundle/Resources/views/Event/show.html.twig @@ -49,8 +49,12 @@ {{ 'event.fields.location'|trans }} - {{ event.location.name }} - {% if event.location.address is not same as(null) %}{{ event.location.address|chill_entity_render_box({'multiline': false, 'with_picto': (event.location.name is empty), 'details_button': true}) }}{% endif %} + {% if event.location is not null %} + {{ event.location.name }} + {% if event.location.address is not same as(null) %}{{ event.location.address|chill_entity_render_box({'multiline': false, 'with_picto': (event.location.name is empty), 'details_button': true}) }}{% endif %} + {% else %} + {{ 'Any location for this event'|trans }} + {% endif %} diff --git a/src/Bundle/ChillEventBundle/translations/messages.fr.yml b/src/Bundle/ChillEventBundle/translations/messages.fr.yml index 271de857c..60d888f07 100644 --- a/src/Bundle/ChillEventBundle/translations/messages.fr.yml +++ b/src/Bundle/ChillEventBundle/translations/messages.fr.yml @@ -27,6 +27,7 @@ Edit the event: Modifier l'événement The event was updated: L'événement a été modifié The event was created: L'événement a été créé List of events: Liste des événements +Any location for this event: Aucune localisation pour cet événement #crud participation Edit all the participations: Modifier toutes les participations @@ -51,6 +52,7 @@ Remove participation: Supprimer la participation Delete event: Supprimer l'événement Are you sure you want to remove that participation ?: Êtes-vous certain de vouloir supprimer cette participation ? Are you sure you want to remove that event ?: Êtes-vous certain de vouloir supprimer cet événement, ainsi que toutes les participations associées ? +Any participation for this person: Cet usager ne participe à aucun évenements #search Event search: Recherche d'événements