mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-21 01:34:23 +00:00
62 lines
2.3 KiB
Twig
62 lines
2.3 KiB
Twig
{% import 'ChillEventBundle:EventReason:macro.html.twig' as m %}
|
|
|
|
{{ dump() }}
|
|
{% for participation in event.participations %}
|
|
{{ participation.id }} --->
|
|
{{ participation.lastupdate|localizeddate('long', 'none') }}
|
|
<br>
|
|
{% endfor %}
|
|
|
|
{#
|
|
TODO
|
|
- user a inscrit la personne à l'événement machin
|
|
- user a modifié le statut de la personne inscrite à l'événement machin. nouveau statut :
|
|
- user a modifié le rôle de la personne inscrite à l'événement machin. nouveau rôle :
|
|
- participation de la personne à l'événement machin
|
|
#}
|
|
|
|
<div>
|
|
<h3>{{ event.date|localizeddate('long', 'none') }}<span class="event"> / {{ 'Event'|trans }}</span></h3>
|
|
<div class="statement">
|
|
<span class="statement">{{ '%user% has done an %event_type%'|trans(
|
|
{
|
|
'%user%' : user,
|
|
'%event_type%': event.type.name|localize_translatable_string,
|
|
'%date%' : event.date|localizeddate('long', 'none') }
|
|
) }}</span>
|
|
|
|
|
|
{% if is_granted(constant('Chill\\ActivityBundle\\Security\\Authorization\\ActivityVoter::SEE_DETAILS'), event) %}
|
|
<dl class="chill_view_data">
|
|
<dt class="inline">{{ 'Remark'|trans }}</dt>
|
|
<dd>{% if event.remark is empty %}{{ 'No remarks'|trans }}{% else %}<blockquote class="chill-user-quote">{{ event.remark|nl2br }}</blockquote>{% endif %}</dd>
|
|
|
|
<dt class="inline">{{ 'Reasons'|trans }}</dt>
|
|
{%- if event.reasons is empty -%}
|
|
<dd><span class="chill-no-data-statement">{{ 'No reason associated'|trans }}</span></dd>
|
|
{%- else -%}
|
|
<dd>{% for r in event.reasons %}{{ m.reason(r) }} {% endfor %}</dd>
|
|
{%- endif -%}
|
|
|
|
</dl>
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
<ul class="record_actions">
|
|
<li>
|
|
<a href="{{ path('chill_event__event_show', { 'event_id': event.id} ) }}" class="sc-button bt-view">
|
|
{{ 'Show the event'|trans }}
|
|
</a>
|
|
</li>
|
|
{% if is_granted('CHILL_EVENT_UPDATE', event) %}
|
|
<li>
|
|
<a href="{{ path('chill_event__event_edit', { 'event_id': event.id} ) }}" class="sc-button bt-edit">
|
|
{{ 'Edit the event'|trans }}
|
|
</a>
|
|
</li>
|
|
{% endif %}
|
|
|
|
</ul>
|
|
</div>
|