Feat: Add functionality to duplicate availabilities

This commit is contained in:
Björn Fromme
2023-10-20 16:41:30 +02:00
parent 9e9608e604
commit 168a69c103
3 changed files with 77 additions and 0 deletions
@@ -55,6 +55,14 @@
}) }}>
{{ icon('edit') }}
</button>
<button type="button"
{{ stimulus_controller('modal-button', [], [], {'ajax-modal': '#ajax-modal'}) }}
{{ stimulus_action('modal-button', 'ajax', null, {
'title': 'Verfügbarkeit duplizieren',
'url': path('app_admin_system_availability_duplicate', { 'id': availability.id })
}) }}>
{{ icon('copy') }}
</button>
</div>
</td>
</tr>