adding remove event feature

This commit is contained in:
2019-11-28 17:37:24 +01:00
parent 8618efc35a
commit 30e0c663dc
7 changed files with 135 additions and 26 deletions

View File

@@ -2,14 +2,14 @@
{% set activeRouteKey = 'chill_event__event_show' %}
{% block title 'Remove participation'|trans %}
{% block title 'Delete event'|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,
'title' : 'Delete event'|trans,
'confirm_question' : 'Are you sure you want to remove that event ?'|trans,
'cancel_route' : activeRouteKey,
'cancel_parameters' : { 'event_id' : event_id },
'form' : delete_form

View File

@@ -57,6 +57,10 @@
</a>
</li>
{% endif %}
<li>
<a href="{{ path('chill_event__event_delete', {'event_id' : event.id } ) }}"
class="sc-button bt-delete">{{ 'Delete event'|trans }}</a>
</li>
</ul>
@@ -87,13 +91,11 @@
{% if is_granted('CHILL_EVENT_PARTICIPATION_UPDATE', participation) %}
<li>
<a href="{{ path('chill_event_participation_edit', { 'participation_id' : participation.id } ) }}"
class="sc-button bt-edit">
{{ 'Edit'|trans }}
</a>
class="sc-button bt-edit" title="{{ 'Edit'|trans }}"></a>
</li>
<li>
<a href="{{ path('chill_event_participation_delete', {'participation_id' : participation.id } ) }}"
class="sc-button bt-delete"></a>
class="sc-button bt-delete" title="{{ 'Delete'|trans }}"></a>
</li>
{% endif %}
</ul>

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 %}