fix: swarm support ui
This commit is contained in:
@@ -25,8 +25,8 @@
|
|||||||
@endif
|
@endif
|
||||||
@endforeach
|
@endforeach
|
||||||
</x-forms.select>
|
</x-forms.select>
|
||||||
<div class="w-72">
|
<div class="w-96">
|
||||||
<div class="pt-6"> Swarm support is in alpha version. </div>
|
<div class="pt-6"> Swarm support is in alpha version. Read the docs <a class='text-white' href='https://coolify.io/docs/swarm' target='_blank'>here</a>.</div>
|
||||||
@if ($is_swarm_worker)
|
@if ($is_swarm_worker)
|
||||||
<x-forms.checkbox disabled instantSave type="checkbox" id="is_swarm_manager"
|
<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/swarm' target='_blank'>here</a>."
|
||||||
@@ -45,24 +45,23 @@
|
|||||||
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/swarm' target='_blank'>here</a>."
|
||||||
label="Is it a Swarm Worker?" />
|
label="Is it a Swarm Worker?" />
|
||||||
@endif
|
@endif
|
||||||
@if ($is_swarm_worker)
|
@if ($is_swarm_worker && count($swarm_managers) > 0)
|
||||||
<div class="py-4">
|
<div class="py-4">
|
||||||
<x-forms.select label="Select a Swarm Cluster" id="selected_swarm_cluster" required>
|
<x-forms.select label="Select a Swarm Cluster" id="selected_swarm_cluster" required>
|
||||||
@foreach ($swarm_managers as $server)
|
@foreach ($swarm_managers as $server)
|
||||||
@if ($loop->first)
|
@if ($loop->first)
|
||||||
<option selected value="{{ $server->id }}">{{ $server->name }}</option>
|
<option selected value="{{ $server->id }}">{{ $server->name }}</option>
|
||||||
@else
|
@else
|
||||||
<option value="{{ $server->id }}">{{ $server->name }}</option>
|
<option value="{{ $server->id }}">{{ $server->name }}</option>
|
||||||
@endif
|
@endif
|
||||||
@endforeach
|
@endforeach
|
||||||
</x-forms.select>
|
</x-forms.select>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
<x-forms.button type="submit">
|
<x-forms.button type="submit">
|
||||||
Save New Server
|
Save Server
|
||||||
</x-forms.button>
|
</x-forms.button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user