Files
2026-05-28 12:09:28 +03:00

5 lines
374 B
Twig

<form method="post" action="{{ path('admin_toggle_location_status', {'id': location.id }) }}" onsubmit="return confirm('Are you sure you want to change status active this item?');">
<input type="hidden" name="_token" value="{{ csrf_token('toggle' ~ location.id) }}">
<button class="btn btn-primary mb-1">{{ location.active ? 'Disable' : 'Enable' }}</button>
</form>