feat: return to detail view after editing accommodation booking
This commit is contained in:
@@ -69,7 +69,11 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex justify-between pt-8">
|
||||
<a href="{{ path('app_admin_accommodationbooking_show', { 'id': booking.id }) }}" class="button button--secondary button--small">
|
||||
{% set back_params = { 'id': booking.id } %}
|
||||
{% if app.request.query.get('r') %}
|
||||
{% set back_params = back_params | merge({ 'r': app.request.query.get('r') }) %}
|
||||
{% endif %}
|
||||
<a href="{{ path('app_admin_accommodationbooking_show', back_params) }}" class="button button--secondary button--small">
|
||||
zurück
|
||||
</a>
|
||||
<button type="submit" class="button button--primary button--small">
|
||||
|
||||
@@ -275,7 +275,11 @@
|
||||
PDF herunterladen
|
||||
</a>
|
||||
{% endif %}
|
||||
<a href="{{ path('app_admin_accommodationbooking_edit', { 'id': booking.id }) }}" class="button button--primary button--small">
|
||||
{% set edit_params = { 'id': booking.id } %}
|
||||
{% if app.request.query.get('r') %}
|
||||
{% set edit_params = edit_params | merge({ 'r': app.request.query.get('r') }) %}
|
||||
{% endif %}
|
||||
<a href="{{ path('app_admin_accommodationbooking_edit', edit_params) }}" class="button button--primary button--small">
|
||||
bearbeiten
|
||||
</a>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user