lasthourcloud/resources/views/livewire/project/service/file-storage.blade.php

28 lines
1.5 KiB
PHP
Raw Normal View History

2024-01-04 12:03:46 +00:00
<div tabindex="0" x-data="{ open: false }"
class="transition border rounded cursor-pointer collapse collapse-arrow border-coolgray-200"
:class="open ? 'collapse-open' : 'collapse-close'">
<div class="flex flex-col justify-center text-sm select-text collapse-title" x-on:click="open = !open">
2023-12-07 18:06:32 +00:00
<div>{{ $workdir }}{{ $fs_path }} -> {{ $fileStorage->mount_path }}</div>
2024-01-04 12:03:46 +00:00
</div>
<div class="collapse-content">
2023-12-07 18:06:32 +00:00
<form wire:submit='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>
</div>
{{-- @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>
@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>
<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
{{-- @endif --}}
</form>
2024-01-04 12:03:46 +00:00
</div>
</div>