adding remove participation method

This commit is contained in:
2019-11-28 16:38:03 +01:00
parent 6fe4594d3c
commit 8618efc35a
5 changed files with 103 additions and 3 deletions

View File

@@ -0,0 +1,20 @@
{% extends 'ChillEventBundle::layout.html.twig' %}
{% set activeRouteKey = 'chill_event__event_show' %}
{% block title 'Remove participation'|trans %}
{% block event_content %}
{{ include('ChillMainBundle:Util:confirmation_template.html.twig',
{
'title' : 'Remove participation'|trans,
'confirm_question' : 'Are you sure you want to remove that participation ?'|trans,
'cancel_route' : activeRouteKey,
'cancel_parameters' : { 'event_id' : event_id },
'form' : delete_form
}
) }}
{% endblock %}

View File

@@ -91,6 +91,10 @@
{{ 'Edit'|trans }}
</a>
</li>
<li>
<a href="{{ path('chill_event_participation_delete', {'participation_id' : participation.id } ) }}"
class="sc-button bt-delete"></a>
</li>
{% endif %}
</ul>
</td>