2023-04-26 15:38:50 +02:00
|
|
|
<div>
|
2023-06-07 17:11:21 +02:00
|
|
|
<h1>Create a new Server</h1>
|
2023-06-08 08:18:14 +02:00
|
|
|
<div class="pt-2 pb-10 text-sm">Servers are the main blocks of your infrastructure.</div>
|
2023-06-07 16:47:10 +02:00
|
|
|
<form class="flex flex-col gap-2" wire:submit.prevent='submit'>
|
|
|
|
<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" required
|
|
|
|
helper="Could be IP Address (127.0.0.1) or Domain Name (duckduckgo.com)." />
|
|
|
|
<x-forms.input id="user" label="User" required />
|
|
|
|
<x-forms.input type="number" id="port" label="Port" required />
|
|
|
|
</div>
|
|
|
|
<x-forms.select label="Private Key" wire:model.defer="private_key_id">
|
2023-05-16 10:03:34 +02:00
|
|
|
<option disabled>Select a private key</option>
|
2023-05-03 10:25:44 +02:00
|
|
|
@foreach ($private_keys as $key)
|
2023-05-16 10:03:34 +02:00
|
|
|
@if ($loop->first)
|
|
|
|
<option selected value="{{ $key->id }}">{{ $key->name }}</option>
|
|
|
|
@else
|
|
|
|
<option value="{{ $key->id }}">{{ $key->name }}</option>
|
|
|
|
@endif
|
2023-05-03 10:25:44 +02:00
|
|
|
@endforeach
|
2023-05-25 14:05:44 +02:00
|
|
|
</x-forms.select>
|
2023-06-07 16:47:10 +02:00
|
|
|
<x-forms.checkbox class="pb-8" disabled instantSave noDirty id="is_part_of_swarm"
|
|
|
|
label="Is it part of a Swarm cluster?" />
|
2023-06-07 15:08:35 +02:00
|
|
|
<x-forms.button type="submit">
|
2023-06-07 16:47:10 +02:00
|
|
|
Save Server
|
2023-06-07 15:08:35 +02:00
|
|
|
</x-forms.button>
|
2023-05-12 15:39:07 +02:00
|
|
|
</form>
|
2023-04-26 15:38:50 +02:00
|
|
|
</div>
|