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

@@ -23,3 +23,11 @@ chill_event_participation_update_multiple:
path: /{event_id}/update_multiple
defaults: { _controller: ChillEventBundle:Participation:updateMultiple }
methods: [POST]
chill_event_participation_delete:
path: /{participation_id}/delete
requirements:
participation_id: \d+
defaults: { _controller: ChillEventBundle:Participation:delete }
methods: [ GET, DELETE ]

View File

@@ -43,9 +43,13 @@ The participation was updated: La participation a été mise à jour
'The following people have been ignored because they are already participating on the event': '{1} La personne suivante a été ignorée parce qu''elle participe déjà à l''événement | ]1,Inf] Les personnes suivantes ont été ignorées parce qu''elles participent déjà à l''événement'
There are no participation to edit for this event: Il n'y a pas de participation pour cet événement
The participations have been successfully updated.: Les participations ont été mises à jour.
The participation has been sucessfully removed: La participation a été correctement supprimée.
The participations were created: Les participations ont été créées
Events participation: Participation aux événements
Remove participation: Supprimer la participation
Are you sure you want to remove that participation ?: Êtes-vous certain de vouloir supprimer cette participation ?
#search
Event search: Recherche d'événements
'%total% events match the search %pattern%' : '{0} Aucun événement ne correspond aux termes de recherche "%pattern%" | {1} Un événement a été trouvé par la recherche "%pattern%" | ]1,Inf] %total% événements correspondent aux termes de recherche "%pattern%".'

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>