2023-08-07 20:14:21 +00:00
|
|
|
<div>
|
2023-12-07 18:06:32 +00:00
|
|
|
<form wire:submit='submit' class="flex flex-col gap-2 xl:items-end xl:flex-row">
|
2023-09-22 09:23:49 +00:00
|
|
|
@if ($isReadOnly)
|
2023-10-03 06:48:07 +00:00
|
|
|
@if ($isFirst)
|
|
|
|
<x-forms.input id="storage.name" label="Volume Name" required readonly />
|
|
|
|
<x-forms.input id="storage.host_path" label="Source Path (on host)" readonly />
|
|
|
|
<x-forms.input id="storage.mount_path" label="Destination Path (in container)" required readonly />
|
|
|
|
@else
|
|
|
|
<x-forms.input id="storage.name" required readonly />
|
|
|
|
<x-forms.input id="storage.host_path" readonly />
|
|
|
|
<x-forms.input id="storage.mount_path" required readonly />
|
|
|
|
@endif
|
2023-08-07 20:14:21 +00:00
|
|
|
@else
|
2023-10-03 06:48:07 +00:00
|
|
|
@if ($isFirst)
|
|
|
|
<x-forms.input id="storage.name" label="Volume Name" required />
|
|
|
|
<x-forms.input id="storage.host_path" label="Source Path (on host)" />
|
|
|
|
<x-forms.input id="storage.mount_path" label="Destination Path (in container)" required />
|
|
|
|
@else
|
|
|
|
<x-forms.input id="storage.name" required />
|
|
|
|
<x-forms.input id="storage.host_path" />
|
|
|
|
<x-forms.input id="storage.mount_path" required />
|
|
|
|
@endif
|
2023-08-07 20:14:21 +00:00
|
|
|
<div class="flex gap-2">
|
|
|
|
<x-forms.button type="submit">
|
|
|
|
Update
|
|
|
|
</x-forms.button>
|
2024-03-20 11:54:06 +00:00
|
|
|
<x-modal-confirmation isErrorButton buttonTitle="Delete">
|
2024-03-25 09:41:44 +00:00
|
|
|
This storage will be deleted <span class="font-bold dark:text-warning">{{ $storage->name }}</span>. It
|
2024-01-31 15:14:12 +00:00
|
|
|
is
|
|
|
|
not
|
|
|
|
reversible. <br>Please think again.
|
2024-03-20 11:54:06 +00:00
|
|
|
</x-modal-confirmation>
|
2023-08-07 20:14:21 +00:00
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
</form>
|
|
|
|
</div>
|