mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
feature: update an existing participation
The update allow to modify the status and role of a participation. ref #8
This commit is contained in:
41
Resources/views/Participation/edit.html.twig
Normal file
41
Resources/views/Participation/edit.html.twig
Normal file
@@ -0,0 +1,41 @@
|
||||
{% extends 'ChillEventBundle::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 person'|trans }}</th>
|
||||
<td>{{ person_macro.render(participation.person) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ 'Associated event'|trans }} </th>
|
||||
<td>{{ participation.event.label }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ 'Date'|trans }} </th>
|
||||
<td>{{ participation.event.date|localizeddate('long', 'none') }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
{{ form_start(form) }}
|
||||
{{ form_row(form.role) }}
|
||||
{{ form_row(form.status) }}
|
||||
|
||||
<ul class="record_actions">
|
||||
<li>
|
||||
<a href="{{ path('event_show', { 'event_id' : participation.event.id } ) }}" class="sc-button btn-cancel">
|
||||
{{ 'Back to the event'|trans }}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
{{ form_widget(form.submit, { 'attr' : { 'class' : 'sc-button btn-create' } } ) }}
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
{{ form_end(form) }}
|
||||
{% endblock %}
|
@@ -2,6 +2,8 @@
|
||||
|
||||
{% import 'ChillPersonBundle:Person:macro.html.twig' as person_macro %}
|
||||
|
||||
{% block title 'Participation creation'|trans %}
|
||||
|
||||
{% block event_content -%}
|
||||
<h1>{{ 'Participation creation'|trans }}</h1>
|
||||
|
||||
|
Reference in New Issue
Block a user