coolify/resources/views/livewire/project/shared/storages/show.blade.php

52 lines
3.0 KiB
PHP
Raw Normal View History

2023-08-07 22:14:21 +02:00
<div>
2023-12-07 19:06:32 +01:00
<form wire:submit='submit' class="flex flex-col gap-2 xl:items-end xl:flex-row">
2023-09-22 11:23:49 +02:00
@if ($isReadOnly)
@if ($isFirst)
2024-04-25 13:37:45 +02:00
<x-forms.input id="storage.name" label="Volume Name" required
helper="Warning: Changing the volume name after the initial start could cause problems. Only use it when you know what are you doing." />
@if ($isService || $startedAt)
<x-forms.input id="storage.host_path" readonly helper="Directory on the host system."
label="Source Path"
helper="Warning: Changing the source path after the initial start could cause problems. Only use it when you know what are you doing." />
@else
<x-forms.input id="storage.host_path" helper="Directory on the host system." label="Source Path"
helper="Warning: Changing the source path after the initial start could cause problems. Only use it when you know what are you doing." />
@endif
<x-forms.input id="storage.mount_path" label="Destination Path" helper="Directory inside the container."
required readonly />
<x-forms.button type="submit">
Update
</x-forms.button>
@else
2024-04-25 13:37:45 +02:00
<x-forms.input id="storage.name" required readonly
helper="Warning: Changing the volume name after the initial start could cause problems. Only use it when you know what are you doing." />
<x-forms.input id="storage.host_path" helper="Directory on the host system." readonly />
<x-forms.input id="storage.mount_path" helper="Directory inside the container." required readonly />
@endif
2023-08-07 22:14:21 +02:00
@else
@if ($isFirst)
<x-forms.input id="storage.name" label="Volume Name" required />
<x-forms.input id="storage.host_path" helper="Directory on the host system." label="Source Path" />
<x-forms.input id="storage.mount_path" label="Destination Path" helper="Directory inside the container."
required />
@else
<x-forms.input id="storage.name" required />
<x-forms.input id="storage.host_path" helper="Directory on the host system." />
<x-forms.input id="storage.mount_path" helper="Directory inside the container." required />
@endif
2023-08-07 22:14:21 +02:00
<div class="flex gap-2">
<x-forms.button type="submit">
Update
</x-forms.button>
2024-03-20 12:54:06 +01:00
<x-modal-confirmation isErrorButton buttonTitle="Delete">
2024-04-25 13:37:45 +02:00
This storage will be deleted <span class="font-bold dark:text-warning">{{ $storage->name }}</span>.
It
2024-01-31 16:14:12 +01:00
is
not
reversible. <br>Please think again.
2024-03-20 12:54:06 +01:00
</x-modal-confirmation>
2023-08-07 22:14:21 +02:00
</div>
@endif
</form>
</div>