2023-05-05 10:08:38 +00:00
|
|
|
<div x-data="{ deleteStorage: false }">
|
2023-05-17 10:14:18 +00:00
|
|
|
<form wire:submit.prevent='submit' class="flex flex-col px-2 max-w-fit">
|
|
|
|
<div class="flex gap-2">
|
|
|
|
<x-inputs.input id="storage.name" label="Name" required />
|
|
|
|
<x-inputs.input id="storage.host_path" label="Source Path" />
|
|
|
|
<x-inputs.input id="storage.mount_path" label="Destination Path" required />
|
|
|
|
</div>
|
|
|
|
<div class="pt-2">
|
2023-05-18 11:26:35 +00:00
|
|
|
<x-inputs.button type="submit">
|
2023-05-17 10:14:18 +00:00
|
|
|
Update
|
|
|
|
</x-inputs.button>
|
2023-05-18 11:26:35 +00:00
|
|
|
<x-inputs.button x-on:click.prevent="deleteStorage = true">
|
2023-05-17 10:14:18 +00:00
|
|
|
Delete
|
|
|
|
</x-inputs.button>
|
|
|
|
</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>
|