2023-08-07 20:14:21 +00:00
|
|
|
<div>
|
|
|
|
<x-modal yesOrNo modalId="{{ $modalId }}" modalTitle="Delete Storage">
|
|
|
|
<x-slot:modalBody>
|
2023-08-08 09:51:36 +00:00
|
|
|
<p>This storage will be deleted <span class="font-bold text-warning">({{ $storage->name }})</span>. It is
|
|
|
|
not
|
2023-08-07 20:14:21 +00:00
|
|
|
reversible. <br>Please think again.</p>
|
|
|
|
</x-slot:modalBody>
|
|
|
|
</x-modal>
|
2023-09-27 10:45:53 +00:00
|
|
|
@once ($isReadOnly)
|
2023-09-22 10:08:51 +00:00
|
|
|
<span class="text-warning">Please modify storage layout in your <a
|
2023-10-03 06:22:03 +00:00
|
|
|
class="underline" href="{{ Str::of(url()->current())->beforeLast('/') }}">Docker Compose</a> file.</span>
|
2023-09-27 10:45:53 +00:00
|
|
|
@endonce
|
2023-09-22 09:23:49 +00:00
|
|
|
<form wire:submit.prevent='submit' class="flex flex-col gap-2 pt-4 xl:items-end xl:flex-row">
|
|
|
|
@if ($isReadOnly)
|
2023-10-01 18:46:49 +00:00
|
|
|
<x-forms.input id="storage.name" label="Volume Name" required readonly />
|
2023-08-11 18:19:42 +00:00
|
|
|
<x-forms.input id="storage.host_path" label="Source Path" readonly />
|
|
|
|
<x-forms.input id="storage.mount_path" label="Destination Path" required readonly />
|
2023-08-07 20:14:21 +00:00
|
|
|
@else
|
2023-08-11 18:19:42 +00:00
|
|
|
<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 />
|
2023-08-07 20:14:21 +00:00
|
|
|
<div class="flex gap-2">
|
|
|
|
<x-forms.button type="submit">
|
|
|
|
Update
|
|
|
|
</x-forms.button>
|
|
|
|
<x-forms.button isError isModal modalId="{{ $modalId }}">
|
|
|
|
Delete
|
|
|
|
</x-forms.button>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
</form>
|
|
|
|
</div>
|