2023-04-26 13:38:50 +00:00
|
|
|
<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 />
|
|
|
|
<x-form-input id="description" label="Description" required />
|
2023-04-26 13:38:50 +00:00
|
|
|
<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-02 07:20:08 +00:00
|
|
|
<button class="mt-4" type="submit">
|
2023-04-26 13:38:50 +00:00
|
|
|
Submit
|
|
|
|
</button>
|
|
|
|
</form>
|
2023-05-02 07:20:08 +00:00
|
|
|
<h1>Select a private key</h1>
|
2023-04-26 13:38:50 +00:00
|
|
|
@foreach ($private_keys as $key)
|
|
|
|
<button @if ($private_key_id == $key->id) class="bg-green-500" @endif
|
|
|
|
wire:click="setPrivateKey('{{ $key->id }}')">{{ $key->name }}</button>
|
|
|
|
@endforeach
|
2023-05-02 07:20:08 +00:00
|
|
|
<h2>Add a new One</h2>
|
2023-04-26 13:38:50 +00:00
|
|
|
<form 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>
|