Clean up use of red trash can
This commit is contained in:
parent
6361f404d8
commit
0347897592
|
|
@ -41,7 +41,7 @@
|
|||
<x-form.footer submit-button-text="Update Audition" class="pb-4 !justify-between">
|
||||
<div>
|
||||
@if($audition->entries->count() == 0)
|
||||
<x-form.red-trash-button size="20"></x-form.red-trash-button>
|
||||
<x-form.red-trash-button form="deleteResource" size="20"></x-form.red-trash-button>
|
||||
@endif
|
||||
</div>
|
||||
<div>
|
||||
|
|
|
|||
|
|
@ -8,8 +8,7 @@
|
|||
<div class="flex justify-end">
|
||||
<x-form.form method="DELETE"
|
||||
action="{{ route('admin.rooms.destroy', ['room'=>$room->id]) }}"
|
||||
class="!px-0 -mr-6 -mt-2"
|
||||
id="deleteResource">
|
||||
class="!px-0 -mr-6 -mt-2">
|
||||
<x-form.red-trash-button/>
|
||||
</x-form.form>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
@props(['size' => 25])
|
||||
@php
|
||||
$attribs = [
|
||||
'form' => 'deleteResource',
|
||||
'type' => 'submit',
|
||||
'class' => 'rounded-lg bg-red-600 p-2 text-white shadow-sm hover:bg-red-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-red-600'
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in New Issue