Initial commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
@props([
|
||||
'action',
|
||||
'message' => 'Czy na pewno usunąć ten obiekt? Tej operacji nie można cofnąć.',
|
||||
'title' => 'Potwierdzenie usunięcia',
|
||||
'button' => 'Usuń',
|
||||
'label' => 'Usuń',
|
||||
])
|
||||
|
||||
{{-- Formularz usuwania - przycisk otwiera wspólny modal (patrz app-layout). --}}
|
||||
<form method="POST" action="{{ $action }}"
|
||||
data-confirm-message="{{ $message }}"
|
||||
data-confirm-title="{{ $title }}"
|
||||
data-confirm-button="{{ $button }}">
|
||||
@csrf
|
||||
@method('DELETE')
|
||||
<button type="button" data-confirm-trigger
|
||||
class="bg-error text-on-error px-4 py-2 rounded-full font-title-sm text-title-sm hover:opacity-90 transition-all active:scale-95">
|
||||
{{ $label }}
|
||||
</button>
|
||||
</form>
|
||||
Reference in New Issue
Block a user