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'>
|
2023-05-03 12:09:10 +00: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" />
|
|
|
|
<x-inputs.input id="private_key_id" label="Private Key" required hidden />
|
|
|
|
<x-inputs.button class="mt-4" type="submit">
|
2023-04-26 13:38:50 +00:00
|
|
|
Submit
|
2023-05-03 12:09:10 +00:00
|
|
|
</x-inputs.button>
|
2023-04-26 13:38:50 +00:00
|
|
|
</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)
|
2023-05-03 12:09:10 +00:00
|
|
|
@if ($private_key_id == $key->id)
|
|
|
|
<x-inputs.button class="bg-blue-500" wire:click.defer="setPrivateKey('{{ $key->id }}')">
|
|
|
|
{{ $key->name }}</x-inputs.button>
|
|
|
|
@else
|
|
|
|
<x-inputs.button wire:click.defer="setPrivateKey('{{ $key->id }}')">{{ $key->name }}
|
|
|
|
</x-inputs.button>
|
|
|
|
@endif
|
2023-05-03 08:25:44 +00:00
|
|
|
@endforeach
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<h2>Add a new One</h2>
|
2023-05-03 10:38:57 +00:00
|
|
|
<livewire:private-key.create />
|
2023-05-03 08:25:44 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-04-26 13:38:50 +00:00
|
|
|
</div>
|