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

34 lines
1.4 KiB
PHP
Raw Normal View History

<div>
2023-05-02 07:20:08 +00:00
<form class="flex flex-col" wire:submit.prevent='submit'>
<x-form-input id="name" label="Name" required />
2023-05-03 08:30:44 +00:00
<x-form-input id="description" label="Description" />
<x-form-input id="ip" label="IP Address" required />
<x-form-input id="user" label="User" />
<x-form-input type="number" id="port" label="Port" />
2023-05-03 08:25:44 +00:00
<x-form-input id="private_key_id" label="Private Key" required hidden />
2023-05-02 07:20:08 +00:00
<button class="mt-4" type="submit">
Submit
</button>
</form>
2023-05-03 08:25:44 +00:00
<div class="flex gap-4">
<div>
<h1>Select a private key</h1>
@foreach ($private_keys as $key)
<button @if ($private_key_id == $key->id) class="bg-green-500" @endif
wire:click.defer="setPrivateKey('{{ $key->id }}')">{{ $key->name }}</button>
@endforeach
</div>
<div>
<h2>Add a new One</h2>
<form class="flex flex-col gap-2" wire:submit.prevent='addPrivateKey'>
<x-form-input id="new_private_key_name" label="Name" required />
<x-form-input id="new_private_key_description" label="Longer Description" />
<x-form-input type="textarea" id="new_private_key_value" label="Private Key" required />
<button type="submit">
Submit
</button>
</form>
</div>
</div>
</div>