2023-04-26 13:38:50 +00:00
|
|
|
<div>
|
2023-06-07 15:11:21 +00:00
|
|
|
<h1>Create a new Server</h1>
|
2023-08-14 12:00:10 +00:00
|
|
|
<div class="subtitle ">Servers are the main blocks of your infrastructure.</div>
|
2023-06-07 14:47:10 +00:00
|
|
|
<form class="flex flex-col gap-2" wire:submit.prevent='submit'>
|
|
|
|
<div class="flex gap-2">
|
2023-08-11 18:19:42 +00:00
|
|
|
<x-forms.input id="name" label="Name" required />
|
|
|
|
<x-forms.input id="description" label="Description" />
|
2023-06-07 14:47:10 +00:00
|
|
|
</div>
|
|
|
|
<div class="flex gap-2">
|
|
|
|
<x-forms.input id="ip" label="IP Address" required
|
2023-08-11 18:19:42 +00:00
|
|
|
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 />
|
2023-06-07 14:47:10 +00:00
|
|
|
</div>
|
2023-06-08 06:47:22 +00:00
|
|
|
<x-forms.select label="Private Key" id="private_key_id">
|
2023-05-16 08:03:34 +00:00
|
|
|
<option disabled>Select a private key</option>
|
2023-05-03 08:25:44 +00:00
|
|
|
@foreach ($private_keys as $key)
|
2023-05-16 08:03:34 +00:00
|
|
|
@if ($loop->first)
|
|
|
|
<option selected value="{{ $key->id }}">{{ $key->name }}</option>
|
|
|
|
@else
|
|
|
|
<option value="{{ $key->id }}">{{ $key->name }}</option>
|
|
|
|
@endif
|
2023-05-03 08:25:44 +00:00
|
|
|
@endforeach
|
2023-05-25 12:05:44 +00:00
|
|
|
</x-forms.select>
|
2023-06-07 13:08:35 +00:00
|
|
|
<x-forms.button type="submit">
|
2023-06-13 08:02:58 +00:00
|
|
|
Save New Server
|
2023-06-07 13:08:35 +00:00
|
|
|
</x-forms.button>
|
2023-05-12 13:39:07 +00:00
|
|
|
</form>
|
2023-04-26 13:38:50 +00:00
|
|
|
</div>
|