mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
timeline: template for events
This commit is contained in:
parent
cfae470089
commit
7212f086cc
@ -61,3 +61,8 @@ CHILL_EVENT_SEE_DETAILS: Voir les détails d'un événement
|
|||||||
Next step: Étape suivante
|
Next step: Étape suivante
|
||||||
To which centre should the event be associated ?: À quel centre doit être associé l'événement ?
|
To which centre should the event be associated ?: À quel centre doit être associé l'événement ?
|
||||||
|
|
||||||
|
# timeline
|
||||||
|
past: passé
|
||||||
|
futur: futur
|
||||||
|
'subscribed by %user% to event "%event%" (%event_type%)': inscrit par %user% à l'événement "%event%" (%event_type%)
|
||||||
|
Show the event: Voir l'événement
|
||||||
|
@ -1,32 +1,33 @@
|
|||||||
{% import 'ChillEventBundle:EventReason:macro.html.twig' as m %}
|
{% import 'ChillEventBundle:EventReason:macro.html.twig' as m %}
|
||||||
|
|
||||||
{{ dump() }}
|
|
||||||
<pre>
|
|
||||||
event :
|
|
||||||
| #{{ event.id }} | {{ event.date|localizeddate('short', 'short') }} | {{ event.name }} | center {{ event.center.id }} | circle {{ event.circle.id }} | type {{ event.type.id }} | {{ event.moderator }} |
|
|
||||||
participations :
|
|
||||||
{% for participation in event.participations %}
|
|
||||||
| #{{ participation.id }} | {{ participation.person }} | {{ participation.role.name|localize_translatable_string }} | {{ participation.status.name|localize_translatable_string }} | lastupdate {{ participation.lastupdate|localizeddate('short', 'short') }} |
|
|
||||||
{% endfor %}
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
{#
|
{#
|
||||||
TODO
|
{{ dump() }}
|
||||||
- user a inscrit la personne à l'événement machin
|
<pre>
|
||||||
- user a modifié le statut de la personne inscrite à l'événement machin. nouveau statut :
|
event :
|
||||||
- user a modifié le rôle de la personne inscrite à l'événement machin. nouveau rôle :
|
| #{{ event.id }} | {{ event.date|localizeddate('short', 'short') }} | {{ event.name }} | center {{ event.center.id }} | circle {{ event.circle.id }} | type {{ event.type.id }} | {{ event.moderator }} |
|
||||||
- participation de la personne à l'événement machin
|
participations :
|
||||||
|
{% for participation in event.participations %}
|
||||||
|
| #{{ participation.id }} | {{ participation.person }} | {{ participation.role.name|localize_translatable_string }} | {{ participation.status.name|localize_translatable_string }} | lastupdate {{ participation.lastupdate|localizeddate('short', 'short') }} |
|
||||||
|
{% endfor %}
|
||||||
|
</pre>
|
||||||
#}
|
#}
|
||||||
|
{% if "now"|date('d/m/Y') < event.date|date('d/m/Y') %}
|
||||||
|
{% set boolDate = 'past' %}
|
||||||
|
{% else %}
|
||||||
|
{% set boolDate = 'futur' %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<h3>{{ event.date|localizeddate('long', 'none') }}<span class="event"> / {{ 'Event'|trans }}</span></h3>
|
<h3>{{ event.date|localizeddate('long', 'none') }}
|
||||||
|
<span class="event"> / {{ 'Event'|trans }} <span style="color: slategrey;">{{ boolDate|trans }}</span></span></h3>
|
||||||
<div class="statement">
|
<div class="statement">
|
||||||
<span class="statement">{{ '%user% has done an %event_type%'|trans(
|
<span class="statement">{{ 'subscribed by %user% to event "%event%" (%event_type%)'|trans({
|
||||||
{
|
'%user%' : user,
|
||||||
'%user%' : user,
|
'%person%' : person,
|
||||||
'%event_type%': event.type.name|localize_translatable_string,
|
'%event%' : event.name,
|
||||||
'%date%' : event.date|localizeddate('long', 'none') }
|
'%event_type%': event.type.name|localize_translatable_string,
|
||||||
) }}</span>
|
'%date%' : event.date|localizeddate('long', 'none') }
|
||||||
|
) }}</span>
|
||||||
|
|
||||||
|
|
||||||
{% if is_granted(constant('Chill\\ActivityBundle\\Security\\Authorization\\ActivityVoter::SEE_DETAILS'), event) %}
|
{% if is_granted(constant('Chill\\ActivityBundle\\Security\\Authorization\\ActivityVoter::SEE_DETAILS'), event) %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user