fix: storage layout
This commit is contained in:
parent
82372ea252
commit
34aa4c6412
@ -1,27 +1,17 @@
|
|||||||
<div tabindex="0" x-data="{ open: false }"
|
<div class="p-4 transition border rounded cursor-pointer border-coolgray-200">
|
||||||
class="transition border rounded cursor-pointer collapse collapse-arrow border-coolgray-200"
|
<div class="flex flex-col justify-center pb-4 text-sm select-text">
|
||||||
:class="open ? 'collapse-open' : 'collapse-close'">
|
<h2>{{ $service->name }}</h2>
|
||||||
<div class="flex flex-col justify-center text-sm select-text collapse-title" x-on:click="open = !open">
|
|
||||||
<div>{{ $workdir }}{{ $fs_path }} -> {{ $fileStorage->mount_path }}</div>
|
<div>{{ $workdir }}{{ $fs_path }} -> {{ $fileStorage->mount_path }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="collapse-content">
|
<div>
|
||||||
<form wire:submit='submit' class="flex flex-col gap-2">
|
<form wire:submit='submit' class="flex flex-col gap-2">
|
||||||
<div class="w-64">
|
<div class="w-64">
|
||||||
<x-forms.checkbox instantSave label="Is directory?" id="fileStorage.is_directory"></x-forms.checkbox>
|
<x-forms.checkbox instantSave label="Is directory?" id="fileStorage.is_directory"></x-forms.checkbox>
|
||||||
</div>
|
</div>
|
||||||
{{-- @if ($fileStorage->is_directory)
|
|
||||||
<x-forms.input readonly label="Directory on Filesystem (save files here)" id="fs_path"></x-forms.input>
|
|
||||||
@else --}}
|
|
||||||
{{-- <div class="flex gap-2">
|
|
||||||
<x-forms.input readonly label="File in Docker Compose file" id="fileStorage.fs_path"></x-forms.input>
|
|
||||||
<x-forms.input readonly label="File on Filesystem (save files here)" id="fs_path"></x-forms.input>
|
|
||||||
</div>
|
|
||||||
<x-forms.input readonly label="Mount (in container)" id="fileStorage.mount_path"></x-forms.input> --}}
|
|
||||||
@if (!$fileStorage->is_directory)
|
@if (!$fileStorage->is_directory)
|
||||||
<x-forms.textarea label="Content" rows="20" id="fileStorage.content"></x-forms.textarea>
|
<x-forms.textarea label="Content" rows="20" id="fileStorage.content"></x-forms.textarea>
|
||||||
<x-forms.button type="submit">Save</x-forms.button>
|
<x-forms.button type="submit">Save</x-forms.button>
|
||||||
@endif
|
@endif
|
||||||
{{-- @endif --}}
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
@endif
|
@endif
|
||||||
@endif
|
@endif
|
||||||
@else
|
@else
|
||||||
@if ($resource->persistentStorages()->get()->count() > 0 || $resource->fileStorages()->get()->count() > 0)
|
@if ($resource->persistentStorages()->get()->count() > 0)
|
||||||
<h3 class="pt-4">{{ Str::headline($resource->name) }} </h3>
|
<h3 class="pt-4">{{ Str::headline($resource->name) }} </h3>
|
||||||
@endif
|
@endif
|
||||||
@if ($resource->persistentStorages()->get()->count() > 0)
|
@if ($resource->persistentStorages()->get()->count() > 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user