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

28 lines
1.0 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'>
<div class="flex items-center gap-2">
<h1>New Server</h1>
<x-inputs.button type="submit">
Save
</x-inputs.button>
</div>
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-12 15:39:07 +02:00
<x-inputs.input id="private_key_id" label="Private Key Id" readonly hidden />
2023-05-15 14:54:03 +02:00
<h1>Select a private key</h1>
<div class="flex">
2023-05-03 10:25:44 +02:00
@foreach ($private_keys as $key)
2023-05-15 14:54:03 +02:00
<div class="w-32 box" :class="{ 'bg-coollabs': {{ $private_key_id == $key->id }} }"
2023-05-12 15:39:07 +02:00
wire:click.defer.prevent="setPrivateKey('{{ $key->id }}')">
{{ $key->name }}
</div>
2023-05-03 10:25:44 +02:00
@endforeach
2023-05-15 14:54:03 +02:00
</div>
2023-05-12 15:39:07 +02:00
</form>
2023-05-15 14:54:03 +02:00
</div>