fix: private key change view

This commit is contained in:
Andras Bacsai
2023-05-03 14:24:18 +02:00
parent abf778ce86
commit 48df84fb19
3 changed files with 19 additions and 17 deletions

View File

@@ -1,8 +1,8 @@
<div>
<form class="flex flex-col gap-2 w-96" wire:submit.prevent='changePrivateKey'>
<x-inputs.input id="private_key_name" label="Name" required />
<x-inputs.input id="private_key_description" label="Longer Description" />
<x-inputs.input type="textarea" id="private_key_value" label="Private Key" required />
<x-inputs.input id="private_key.name" label="Name" required />
<x-inputs.input id="private_key.description" label="Description" />
<x-inputs.input type="textarea" id="private_key.private_key" label="Private Key" required />
<x-inputs.button type="submit">
Submit
</x-inputs.button>

View File

@@ -1,4 +1,4 @@
<x-layout>
<h1>Private Key</h1>
<livewire:private-key.change :private_key_value="$private_key->private_key" :private_key_description="$private_key->description" :private_key_name="$private_key->name" :private_key_uuid="$private_key->uuid" />
<livewire:private-key.change :private_key_uuid="$private_key->uuid" />
</x-layout>