An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix: checkbox click
Andras Bacsai7a0e415ecf22
diff --git a/resources/views/components/forms/checkbox.blade.php b/resources/views/components/forms/checkbox.blade.phpindex 98141b0443..1265dc1328 100644--- a/resources/views/components/forms/checkbox.blade.php+++ b/resources/views/components/forms/checkbox.blade.php@@ -1,5 +1,5 @@-<div class="px-2 form-control min-w-fit hover:bg-coolgray-100">- <label class="flex gap-4 px-0 cursor-pointer label">+<div class="flex flex-row items-center gap-4 px-2 form-control min-w-fit hover:bg-coolgray-100">+ <label class="flex gap-4 px-0 label"><span class="flex gap-2 label-text min-w-fit">@if ($label){!! $label !!}@@ -10,8 +10,9 @@<x-helper :helper="$helper" />@endif</span>- <input @disabled($disabled) type="checkbox" {{ $attributes->merge(['class' => $defaultClass]) }}- @if ($instantSave) wire:loading.attr="disabled" wire:click='{{ $instantSave === 'instantSave' || $instantSave == '1' ? 'instantSave' : $instantSave }}'- wire:model={{ $id }} @else wire:model={{ $value ?? $id }} @endif /></label>+ <span class="flex-grow"></span>+ <input @disabled($disabled) type="checkbox" {{ $attributes->merge(['class' => $defaultClass]) }}+ @if ($instantSave) wire:loading.attr="disabled" wire:click='{{ $instantSave === 'instantSave' || $instantSave == '1' ? 'instantSave' : $instantSave }}'+ wire:model={{ $id }} @else wire:model={{ $value ?? $id }} @endif /></div>diff --git a/resources/views/livewire/project/new/select.blade.php b/resources/views/livewire/project/new/select.blade.phpindex caff1fb150..ff2e22ae23 100644--- a/resources/views/livewire/project/new/select.blade.php+++ b/resources/views/livewire/project/new/select.blade.php@@ -207,7 +207,7 @@<div class="flex items-center justify-center pt-4"><x-forms.checkbox instantSave wire:model="includeSwarm"helper="Swarm clusters are excluded from this list by default. For database, services or complex compose deployments with databases to work with Swarm,- you need to set a few things on the server. Read more <a class='text-white underline' href='https://coolify.io/docs/swarm#database-requirements' target='_blank'>here</a>."+ you need to set a few things on the server. Read more <a class='text-white underline' href='https://coolify.io/docs/docker/swarm#database-requirements' target='_blank'>here</a>."label="Include Swarm Clusters" /></div>@endif --}}diff --git a/resources/views/livewire/server/form.blade.php b/resources/views/livewire/server/form.blade.phpindex 858cfb5da7..4ea218aad8 100644--- a/resources/views/livewire/server/form.blade.php+++ b/resources/views/livewire/server/form.blade.php@@ -59,20 +59,20 @@@endif@if ($server->settings->is_swarm_worker)<x-forms.checkbox disabled instantSave type="checkbox" id="server.settings.is_swarm_manager"- helper="For more information, please read the documentation <a class='text-white' href='https://coolify.io/docs/swarm' target='_blank'>here</a>."+ helper="For more information, please read the documentation <a class='text-white' href='https://coolify.io/docs/docker/swarm' target='_blank'>here</a>."label="Is it a Swarm Manager?" />@else<x-forms.checkbox instantSave type="checkbox" id="server.settings.is_swarm_manager"- helper="For more information, please read the documentation <a class='text-white' href='https://coolify.io/docs/swarm' target='_blank'>here</a>."+ helper="For more information, please read the documentation <a class='text-white' href='https://coolify.io/docs/docker/swarm' target='_blank'>here</a>."label="Is it a Swarm Manager?" />@endif@if ($server->settings->is_swarm_manager)<x-forms.checkbox disabled instantSave type="checkbox" id="server.settings.is_swarm_worker"- helper="For more information, please read the documentation <a class='text-white' href='https://coolify.io/docs/swarm' target='_blank'>here</a>."+ helper="For more information, please read the documentation <a class='text-white' href='https://coolify.io/docs/docker/swarm' target='_blank'>here</a>."label="Is it a Swarm Worker?" />@else<x-forms.checkbox instantSave type="checkbox" id="server.settings.is_swarm_worker"- helper="For more information, please read the documentation <a class='text-white' href='https://coolify.io/docs/swarm' target='_blank'>here</a>."+ helper="For more information, please read the documentation <a class='text-white' href='https://coolify.io/docs/docker/swarm' target='_blank'>here</a>."label="Is it a Swarm Worker?" />@endif@endifdiff --git a/resources/views/livewire/server/new/by-ip.blade.php b/resources/views/livewire/server/new/by-ip.blade.phpindex d1a8f4c15f..11b6badf08 100644--- a/resources/views/livewire/server/new/by-ip.blade.php+++ b/resources/views/livewire/server/new/by-ip.blade.php@@ -26,23 +26,23 @@@endforeach</x-forms.select><div class="w-96">- <div class="pt-6"> Swarm support is in alpha version. Read the docs <a class='text-white' href='https://coolify.io/docs/swarm#deploy-with-persistent-storage' target='_blank'>here</a>.</div>+ <div class="pt-6"> Swarm support is in alpha version. Read the docs <a class='text-white' href='https://coolify.io/docs/docker/swarm#deploy-with-persistent-storage' target='_blank'>here</a>.</div>@if ($is_swarm_worker)<x-forms.checkbox disabled instantSave type="checkbox" id="is_swarm_manager"- helper="For more information, please read the documentation <a class='text-white' href='https://coolify.io/docs/swarm' target='_blank'>here</a>."+ helper="For more information, please read the documentation <a class='text-white' href='https://coolify.io/docs/docker/swarm' target='_blank'>here</a>."label="Is it a Swarm Manager?" />@else<x-forms.checkbox type="checkbox" instantSave id="is_swarm_manager"- helper="For more information, please read the documentation <a class='text-white' href='https://coolify.io/docs/swarm' target='_blank'>here</a>."+ helper="For more information, please read the documentation <a class='text-white' href='https://coolify.io/docs/docker/swarm' target='_blank'>here</a>."label="Is it a Swarm Manager?" />@endif@if ($is_swarm_manager)<x-forms.checkbox disabled instantSave type="checkbox" id="is_swarm_worker"- helper="For more information, please read the documentation <a class='text-white' href='https://coolify.io/docs/swarm' target='_blank'>here</a>."+ helper="For more information, please read the documentation <a class='text-white' href='https://coolify.io/docs/docker/swarm' target='_blank'>here</a>."label="Is it a Swarm Worker?" />@else<x-forms.checkbox type="checkbox" instantSave id="is_swarm_worker"- helper="For more information, please read the documentation <a class='text-white' href='https://coolify.io/docs/swarm' target='_blank'>here</a>."+ helper="For more information, please read the documentation <a class='text-white' href='https://coolify.io/docs/docker/swarm' target='_blank'>here</a>."label="Is it a Swarm Worker?" />@endif@if ($is_swarm_worker && count($swarm_managers) > 0)