mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-04 22:04:59 +00:00
adding remove participation method
This commit is contained in:
@@ -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 ]
|
||||
|
||||
|
@@ -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%".'
|
||||
|
20
Resources/views/Event/confirm_delete.html.twig
Normal file
20
Resources/views/Event/confirm_delete.html.twig
Normal 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 %}
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user