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

27 lines
1.1 KiB
PHP
Raw Normal View History

<div>
2023-05-12 15:39:07 +02:00
<form class="flex flex-col gap-1" wire:submit.prevent='submit'>
2023-05-16 10:03:34 +02:00
<h1>New Server</h1>
2023-05-03 14:09:10 +02:00
<x-inputs.input id="name" label="Name" required />
<x-inputs.input id="description" label="Description" />
<x-inputs.input id="ip" label="IP Address" required />
<x-inputs.input id="user" label="User" />
<x-inputs.input type="number" id="port" label="Port" />
2023-05-16 10:03:34 +02:00
<label>Private Key</label>
2023-05-16 11:02:51 +02:00
<x-inputs.select 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-16 11:02:51 +02:00
</x-inputs.select>
<x-inputs.input instantSave noDirty type="checkbox" id="is_part_of_swarm"
label="Is it part of a Swarm cluster?" />
2023-05-18 13:26:35 +02:00
<x-inputs.button type="submit">
2023-05-16 10:03:34 +02:00
Save
</x-inputs.button>
2023-05-12 15:39:07 +02:00
</form>
</div>