actions buttons, set return values in url

This commit is contained in:
2019-01-21 15:42:25 +01:00
parent 91124893fd
commit 3c434852d5
5 changed files with 88 additions and 18 deletions

View File

@@ -28,8 +28,12 @@
<ul class="record_actions">
<li class="cancel">
<a href="{{ path('chill_event__event_show', { 'event_id' : participation.event.id } ) }}" class="sc-button bt-cancel">
{{ 'Back to the event'|trans }}
{% set returnPath = app.request.get('return_path') %}
{% set returnLabel = app.request.get('return_label') %}
<a href="{{ returnPath |default( path('chill_event__event_show', { 'event_id' : participation.event.id } )) }}" class="sc-button bt-cancel">
{{ returnLabel |default('Back to the event'|trans) }}
</a>
</li>
<li>