2023-09-25 10:49:55 +00:00
|
|
|
<x-collapsible>
|
|
|
|
<x-slot:title>
|
2023-09-30 13:08:40 +00:00
|
|
|
<div>{{$workdir}}{{ $fs_path }} -> {{ $fileStorage->mount_path }}</div>
|
2023-09-25 10:49:55 +00:00
|
|
|
</x-slot:title>
|
|
|
|
<x-slot:action>
|
|
|
|
<form wire:submit.prevent='submit' class="flex flex-col gap-2">
|
2023-09-26 12:45:52 +00:00
|
|
|
<div class="w-64">
|
|
|
|
<x-forms.checkbox instantSave label="Is directory?" id="fileStorage.is_directory"></x-forms.checkbox>
|
2023-09-25 10:49:55 +00:00
|
|
|
</div>
|
2023-09-29 19:38:11 +00:00
|
|
|
{{-- @if ($fileStorage->is_directory)
|
2023-09-27 10:45:53 +00:00
|
|
|
<x-forms.input readonly label="Directory on Filesystem (save files here)" id="fs_path"></x-forms.input>
|
2023-09-29 19:38:11 +00:00
|
|
|
@else --}}
|
|
|
|
{{-- <div class="flex gap-2">
|
2023-09-26 12:45:52 +00:00
|
|
|
<x-forms.input readonly label="File in Docker Compose file" id="fileStorage.fs_path"></x-forms.input>
|
2023-09-27 10:45:53 +00:00
|
|
|
<x-forms.input readonly label="File on Filesystem (save files here)" id="fs_path"></x-forms.input>
|
2023-09-26 12:45:52 +00:00
|
|
|
</div>
|
2023-09-29 19:38:11 +00:00
|
|
|
<x-forms.input readonly label="Mount (in container)" id="fileStorage.mount_path"></x-forms.input> --}}
|
|
|
|
@if (!$fileStorage->is_directory)
|
2023-09-26 12:45:52 +00:00
|
|
|
<x-forms.textarea label="Content" rows="20" id="fileStorage.content"></x-forms.textarea>
|
|
|
|
<x-forms.button type="submit">Save</x-forms.button>
|
|
|
|
@endif
|
2023-09-29 19:38:11 +00:00
|
|
|
{{-- @endif --}}
|
2023-09-25 10:49:55 +00:00
|
|
|
</form>
|
|
|
|
</x-slot:action>
|
|
|
|
</x-collapsible>
|