mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-21 17:54:24 +00:00
66 lines
2.7 KiB
Twig
66 lines
2.7 KiB
Twig
{% 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>
|
|
#}
|
|
{% if "now"|date('d/m/Y') < event.date|date('d/m/Y') %}
|
|
{% set boolDate = 'past' %}
|
|
{% else %}
|
|
{% set boolDate = 'futur' %}
|
|
{% endif %}
|
|
|
|
<div>
|
|
<h3>{{ event.date|localizeddate('long', 'none') }}
|
|
<span class="event"> / {{ 'Event'|trans }} <span style="color: slategrey;">{{ boolDate|trans }}</span></span></h3>
|
|
<div class="statement">
|
|
<span class="statement">{{ 'subscribed by %user% to event "%event%" (%event_type%)'|trans({
|
|
'%user%' : user,
|
|
'%person%' : person,
|
|
'%event%' : event.name,
|
|
'%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>
|