30 lines
1.3 KiB
PHP
30 lines
1.3 KiB
PHP
<div x-data="{ raw: true }">
|
|
<div class="pb-4">Volume names are updated upon save. The service UUID will be added as a prefix to all volumes, to
|
|
prevent
|
|
name collision. <br>To see the actual volume names, check the Deployable Compose file, or go to Storage
|
|
menu.</div>
|
|
<div x-cloak x-show="raw" class="font-mono">
|
|
<x-forms.textarea allowTab rows="20" id="service.docker_compose_raw">
|
|
</x-forms.textarea>
|
|
</div>
|
|
<div x-cloak x-show="raw === false" class="font-mono">
|
|
<x-forms.textarea rows="20" readonly id="service.docker_compose">
|
|
</x-forms.textarea>
|
|
</div>
|
|
<div class="flex justify-end w-full gap-2 pt-4">
|
|
<div class="flex items-end gap-2">
|
|
<div x-cloak x-show="raw">
|
|
<x-forms.button class="w-64" @click.prevent="raw = !raw">Show Deployable Compose</x-forms.button>
|
|
</div>
|
|
<div x-cloak x-show="raw === false">
|
|
<x-forms.button class="w-64" @click.prevent="raw = !raw">Show Source
|
|
Compose</x-forms.button>
|
|
</div>
|
|
</div>
|
|
<div class="flex-1"></div>
|
|
<x-forms.button class="w-64" wire:click.prevent='saveEditedCompose'>
|
|
Save
|
|
</x-forms.button>
|
|
</div>
|
|
</div>
|