mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +00:00
63 lines
2.2 KiB
Twig
63 lines
2.2 KiB
Twig
{% extends '@ChillEvent/layout.html.twig' %}
|
|
|
|
{% import 'ChillPersonBundle:Person:macro.html.twig' as person_macro %}
|
|
|
|
{% block event_content -%}
|
|
<h1>{{ 'Participation Edit'|trans }}</h1>
|
|
|
|
<table>
|
|
<tbody>
|
|
<tr>
|
|
<th>{{ 'Associated event'|trans }} </th>
|
|
<td>{{ event.name }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>{{ 'Date'|trans }} </th>
|
|
<td>{{ event.date|format_date('long') }}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<h2>{{ 'Participations'|trans }}</h2>
|
|
|
|
{{ form_start(form) }}
|
|
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>{{ 'Person'|trans }}</th>
|
|
<th>{{ 'Role'|trans }}</th>
|
|
<th>{{ 'Status'|trans }}</th>
|
|
<th>{{ 'Last update'|trans }}</th>
|
|
<th> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for participation in form.participations %}
|
|
<tr>
|
|
<td>{{ person_macro.render(participation.vars.value.person) }}</td>
|
|
<td>{{ form_widget(participation.role) }}</td>
|
|
<td>{{ form_widget(participation.status) }}</td>
|
|
<td>{{ participation.vars.value.lastUpdate|ago }} {# sf4 check: filter 'time_diff' is abandoned,
|
|
alternative: knplabs/knp-time-bundle provide filter 'ago' #}
|
|
<i class="fa fa-info-circle" title="{{ participation.vars.value.lastUpdate|format_date("long")|escape('html_attr') }}"></i>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
<ul class="record_actions">
|
|
<li>
|
|
<a href="{{ path('chill_event__event_show', { 'event_id' : event.id } ) }}" class="sc-button bt-cancel">
|
|
{{ 'Back to the event'|trans }}
|
|
</a>
|
|
</li>
|
|
<li>
|
|
{{ form_widget(form.submit, { 'attr' : { 'class' : 'sc-button bt-edit' } } ) }}
|
|
</li>
|
|
</ul>
|
|
|
|
{{ form_end(form) }}
|
|
{% endblock %}
|