This commit is contained in:
Andras Bacsai
2023-06-15 15:38:15 +02:00
parent c9c56c915c
commit f828cd813b
7 changed files with 82 additions and 36 deletions

View File

@@ -1,6 +1,16 @@
<div x-data="{ deletePrivateKey: false, showPrivateKey: false }">
<x-naked-modal show="deletePrivateKey" message='Are you sure you would like to delete this private key?' />
<form class="flex flex-col gap-2" wire:submit.prevent='changePrivateKey'>
<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>
<div class="pt-2 pb-8 text-sm">Private Key used for SSH connection</div>
<x-forms.input id="private_key.name" label="Name" required />
<x-forms.input id="private_key.description" label="Description" />
<div>
@@ -23,13 +33,6 @@
<x-forms.textarea rows="10" id="private_key.private_key" required />
</div>
</div>
<div>
<x-forms.button type="submit">
Save
</x-forms.button>
<x-forms.button x-on:click.prevent="deletePrivateKey = true">
Delete
</x-forms.button>
</div>
</form>
</div>