fix: add navbar for source + keys

This commit is contained in:
Andras Bacsai
2023-09-04 09:44:44 +02:00
parent 517cb77637
commit 3e3024d47e
15 changed files with 72 additions and 30 deletions

View File

@@ -6,7 +6,7 @@
</x-modal>
<form class="flex flex-col gap-2" wire:submit.prevent='changePrivateKey'>
<div class="flex items-end gap-2">
<h1>Private Key</h1>
<h2>Private Key</h2>
<x-forms.button type="submit">
Save
</x-forms.button>
@@ -16,7 +16,6 @@
</x-forms.button>
@endif
</div>
<div class="pb-8">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>

View File

@@ -1,7 +1,7 @@
<div>
<div class="flex items-end gap-2 pb-6 ">
<h2>Private Key</h2>
<a href="{{ route('private-key.new') }}">
<a href="{{ route('security.private-key.new') }}">
<x-forms.button>Add a new Private Key</x-forms.button>
</a>
<x-forms.button wire:click.prevent='checkConnection'>
@@ -13,7 +13,7 @@
@if (data_get($server, 'privateKey.uuid'))
<div>
Currently attached Private Key:
<a href="{{ route('private-key.show', ['private_key_uuid' => data_get($server, 'privateKey.uuid')]) }}">
<a href="{{ route('security.private-key.show', ['private_key_uuid' => data_get($server, 'privateKey.uuid')]) }}">
<button class="text-white btn-link">{{ data_get($server, 'privateKey.name') }}</button>
</a>
</div>