2023-05-05 10:08:38 +00:00
|
|
|
<div x-data="{ deleteStorage: false }">
|
2023-06-15 07:15:41 +00:00
|
|
|
<form wire:submit.prevent='submit' class="flex flex-col gap-2 xl:items-end xl:flex-row">
|
|
|
|
<x-forms.input id="storage.name" label="Name" required />
|
|
|
|
<x-forms.input id="storage.host_path" label="Source Path" />
|
|
|
|
<x-forms.input id="storage.mount_path" label="Destination Path" required />
|
|
|
|
<div class="flex gap-2">
|
2023-05-25 12:05:44 +00:00
|
|
|
<x-forms.button type="submit">
|
2023-05-17 10:14:18 +00:00
|
|
|
Update
|
2023-05-25 12:05:44 +00:00
|
|
|
</x-forms.button>
|
|
|
|
<x-forms.button x-on:click.prevent="deleteStorage = true">
|
2023-05-17 10:14:18 +00:00
|
|
|
Delete
|
2023-05-25 12:05:44 +00:00
|
|
|
</x-forms.button>
|
2023-05-17 10:14:18 +00:00
|
|
|
</div>
|
2023-05-05 10:08:38 +00:00
|
|
|
</form>
|
|
|
|
<x-naked-modal show="deleteStorage" message="Are you sure you want to delete {{ $storage->name }}?" />
|
|
|
|
</div>
|