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

24 lines
1.2 KiB
PHP
Raw Normal View History

<x-collapsible>
<x-slot:title>
2023-09-28 07:54:21 +00:00
<div>{{ $fileStorage->mount_path }} </div>
</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>
</div>
2023-09-27 10:45:53 +00:00
@if ($fileStorage->is_directory)
<x-forms.input readonly label="Directory on Filesystem (save files here)" id="fs_path"></x-forms.input>
@else
2023-09-26 12:45:52 +00:00
<div class="flex gap-2">
<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>
<x-forms.textarea label="Content" rows="20" id="fileStorage.content"></x-forms.textarea>
<x-forms.button type="submit">Save</x-forms.button>
@endif
</form>
</x-slot:action>
</x-collapsible>