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">
|
<x-form.footer submit-button-text="Update Audition" class="pb-4 !justify-between">
|
||||||
<div>
|
<div>
|
||||||
@if($audition->entries->count() == 0)
|
@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
|
@endif
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,7 @@
|
||||||
<div class="flex justify-end">
|
<div class="flex justify-end">
|
||||||
<x-form.form method="DELETE"
|
<x-form.form method="DELETE"
|
||||||
action="{{ route('admin.rooms.destroy', ['room'=>$room->id]) }}"
|
action="{{ route('admin.rooms.destroy', ['room'=>$room->id]) }}"
|
||||||
class="!px-0 -mr-6 -mt-2"
|
class="!px-0 -mr-6 -mt-2">
|
||||||
id="deleteResource">
|
|
||||||
<x-form.red-trash-button/>
|
<x-form.red-trash-button/>
|
||||||
</x-form.form>
|
</x-form.form>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
@props(['size' => 25])
|
@props(['size' => 25])
|
||||||
@php
|
@php
|
||||||
$attribs = [
|
$attribs = [
|
||||||
'form' => 'deleteResource',
|
|
||||||
'type' => 'submit',
|
'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'
|
'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