akaunting 3.0 (the last dance)
This commit is contained in:
25
resources/views/components/delete-link.blade.php
Normal file
25
resources/views/components/delete-link.blade.php
Normal file
@ -0,0 +1,25 @@
|
||||
<x-button
|
||||
type="button"
|
||||
class="{{ $class }}"
|
||||
@click="onDeleteViaConfirmation('delete-{{ $modelTable }}-{{ $id }}')"
|
||||
override="class"
|
||||
>
|
||||
<span class="{{ $textClass }}">
|
||||
@if ($slot->isNotEmpty())
|
||||
{!! $slot !!}
|
||||
@else
|
||||
{!! $label !!}
|
||||
@endif
|
||||
</span>
|
||||
|
||||
<x-form.input.hidden
|
||||
name="delete-{{ $modelTable }}-{{ $id }}"
|
||||
id="delete-{{ $modelTable }}-{{ $id }}"
|
||||
data-field="delete"
|
||||
data-action="{{ $action }}"
|
||||
data-title="{!! $title !!}"
|
||||
data-message="{!! $message !!}"
|
||||
data-cancel="{!! $cancelText !!}"
|
||||
data-delete="{!! $deleteText !!}"
|
||||
/>
|
||||
</x-button>
|
Reference in New Issue
Block a user