2023-04-26 13:38:50 +00:00
|
|
|
<div>
|
2023-08-14 13:22:29 +00:00
|
|
|
@if ($limit_reached)
|
|
|
|
<x-limit-reached name="servers" />
|
|
|
|
@else
|
|
|
|
<h1>Create a new Server</h1>
|
2023-11-28 14:49:24 +00:00
|
|
|
<div class="subtitle">Servers are the main blocks of your infrastructure.</div>
|
2023-12-07 18:06:32 +00:00
|
|
|
<form class="flex flex-col gap-2" wire:submit='submit'>
|
2023-08-14 13:22:29 +00: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">
|
2023-11-17 11:38:47 +00:00
|
|
|
<x-forms.input id="ip" label="IP Address/Domain" required
|
2023-11-03 09:57:58 +00:00
|
|
|
helper="An IP Address (127.0.0.1) or domain (example.com)." />
|
2023-10-11 07:57:35 +00:00
|
|
|
<x-forms.input id="user" label ="User" required />
|
2023-08-14 13:22:29 +00: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-18 16:13:22 +00:00
|
|
|
{{-- <div class="w-72">
|
2023-12-18 13:01:25 +00:00
|
|
|
@if ($is_swarm_worker)
|
|
|
|
<x-forms.checkbox disabled instantSave type="checkbox" id="is_swarm_manager"
|
2023-12-18 13:34:04 +00: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?<span class='font-bold text-warning'>(alpha)</span>" />
|
2023-12-18 13:01:25 +00:00
|
|
|
@else
|
|
|
|
<x-forms.checkbox instantSave type="checkbox" id="is_swarm_manager"
|
2023-12-18 13:34:04 +00: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?<span class='font-bold text-warning'>(alpha)</span>" />
|
2023-12-18 13:01:25 +00:00
|
|
|
@endif
|
|
|
|
@if ($is_swarm_manager)
|
|
|
|
<x-forms.checkbox disabled instantSave type="checkbox" id="is_swarm_worker"
|
2023-12-18 13:34:04 +00: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?<span class='font-bold text-warning'>(alpha)</span>" />
|
2023-12-18 13:01:25 +00:00
|
|
|
@else
|
2023-12-18 13:34:04 +00:00
|
|
|
<x-forms.checkbox 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>."
|
|
|
|
label="Is it a Swarm Worker?<span class='font-bold text-warning'>(alpha)</span>" />
|
2023-12-18 13:01:25 +00:00
|
|
|
@endif
|
2023-12-18 16:13:22 +00:00
|
|
|
</div> --}}
|
2023-08-14 13:22:29 +00:00
|
|
|
<x-forms.button type="submit">
|
|
|
|
Save New Server
|
|
|
|
</x-forms.button>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
@endif
|
2023-04-26 13:38:50 +00:00
|
|
|
</div>
|