2023-06-15 07:58:17 +00:00
|
|
|
<div x-data="{ deletePrivateKey: false, showPrivateKey: false }">
|
2023-05-04 20:39:40 +00:00
|
|
|
<x-naked-modal show="deletePrivateKey" message='Are you sure you would like to delete this private key?' />
|
2023-05-16 09:02:51 +00:00
|
|
|
<form class="flex flex-col gap-2" wire:submit.prevent='changePrivateKey'>
|
2023-06-15 13:38:15 +00:00
|
|
|
<div class="flex items-end gap-2">
|
|
|
|
<h1>Private Key</h1>
|
|
|
|
<x-forms.button type="submit">
|
|
|
|
Save
|
|
|
|
</x-forms.button>
|
|
|
|
<x-forms.button x-on:click.prevent="deletePrivateKey = true">
|
|
|
|
Delete
|
|
|
|
</x-forms.button>
|
|
|
|
</div>
|
2023-06-16 10:35:40 +00:00
|
|
|
<div class="pb-8 ">Private Key used for SSH connection</div>
|
2023-05-25 12:05:44 +00:00
|
|
|
<x-forms.input id="private_key.name" label="Name" required />
|
|
|
|
<x-forms.input id="private_key.description" label="Description" />
|
2023-06-15 07:58:17 +00:00
|
|
|
<div>
|
|
|
|
<div class="flex items-end gap-2 py-2 ">
|
2023-06-16 10:35:40 +00:00
|
|
|
<div class="pl-1 ">Private Key <span class='text-helper'>*</span></div>
|
2023-06-15 07:58:17 +00:00
|
|
|
<div class="text-xs text-white underline cursor-pointer" x-cloak x-show="!showPrivateKey"
|
|
|
|
x-on:click="showPrivateKey = true">
|
|
|
|
Show
|
|
|
|
</div>
|
|
|
|
<div class="text-xs text-white underline cursor-pointer" x-cloak x-show="showPrivateKey"
|
|
|
|
x-on:click="showPrivateKey = false">
|
|
|
|
Hide
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div x-cloak x-show="!showPrivateKey">
|
2023-06-16 08:45:27 +00:00
|
|
|
<x-forms.input cannotPeakPassword type="password" rows="10" id="private_key.private_key" required
|
2023-06-15 07:58:17 +00:00
|
|
|
disabled />
|
|
|
|
</div>
|
|
|
|
<div x-cloak x-show="showPrivateKey">
|
|
|
|
<x-forms.textarea rows="10" id="private_key.private_key" required />
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-06-15 13:38:15 +00:00
|
|
|
|
2023-05-03 10:38:57 +00:00
|
|
|
</form>
|
|
|
|
</div>
|