coolify/resources/views/livewire/server/new/by-ip.blade.php

68 lines
3.8 KiB
PHP
Raw Normal View History

<div>
2023-08-14 15:22:29 +02:00
@if ($limit_reached)
<x-limit-reached name="servers" />
@else
<h1>Create a new Server</h1>
2023-11-28 15:49:24 +01:00
<div class="subtitle">Servers are the main blocks of your infrastructure.</div>
2023-12-07 19:06:32 +01:00
<form class="flex flex-col gap-2" wire:submit='submit'>
2023-08-14 15:22:29 +02:00
<div class="flex gap-2">
<x-forms.input id="name" label="Name" required />
<x-forms.input id="description" label="Description" />
</div>
<div class="flex gap-2">
<x-forms.input id="ip" label="IP Address/Domain" required
helper="An IP Address (127.0.0.1) or domain (example.com)." />
2023-10-11 09:57:35 +02:00
<x-forms.input id="user" label ="User" required />
2023-08-14 15:22:29 +02:00
<x-forms.input type="number" id="port" label="Port" required />
</div>
<x-forms.select label="Private Key" id="private_key_id">
<option disabled>Select a private key</option>
@foreach ($private_keys as $key)
@if ($loop->first)
<option selected value="{{ $key->id }}">{{ $key->name }}</option>
@else
<option value="{{ $key->id }}">{{ $key->name }}</option>
@endif
@endforeach
</x-forms.select>
2023-12-20 10:19:21 +01:00
<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' target='_blank'>here</a>.</div>
2023-12-18 14:01:25 +01:00
@if ($is_swarm_worker)
<x-forms.checkbox disabled instantSave type="checkbox" id="is_swarm_manager"
2023-12-18 14:34:04 +01:00
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 Manager?" />
2023-12-18 14:01:25 +01:00
@else
<x-forms.checkbox type="checkbox" instantSave id="is_swarm_manager"
2023-12-18 14:34:04 +01:00
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 Manager?" />
2023-12-18 14:01:25 +01:00
@endif
@if ($is_swarm_manager)
<x-forms.checkbox disabled instantSave type="checkbox" id="is_swarm_worker"
2023-12-18 14:34:04 +01:00
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?" />
2023-12-18 14:01:25 +01:00
@else
<x-forms.checkbox type="checkbox" instantSave id="is_swarm_worker"
2023-12-18 14:34:04 +01:00
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?" />
2023-12-18 14:01:25 +01:00
@endif
2023-12-20 10:19:21 +01:00
@if ($is_swarm_worker && count($swarm_managers) > 0)
<div class="py-4">
<x-forms.select label="Select a Swarm Cluster" id="selected_swarm_cluster" required>
@foreach ($swarm_managers as $server)
@if ($loop->first)
<option selected value="{{ $server->id }}">{{ $server->name }}</option>
@else
<option value="{{ $server->id }}">{{ $server->name }}</option>
@endif
@endforeach
</x-forms.select>
</div>
@endif
</div>
2023-08-14 15:22:29 +02:00
<x-forms.button type="submit">
2023-12-20 10:19:21 +01:00
Save Server
2023-08-14 15:22:29 +02:00
</x-forms.button>
</form>
@endif
</div>