coolify/resources/views/livewire/server/show-private-key.blade.php

40 lines
1.5 KiB
PHP
Raw Normal View History

2023-06-15 14:18:49 +02:00
<div>
2023-06-16 13:13:09 +02:00
<div class="flex items-end gap-2 pb-6 ">
2023-06-22 09:38:44 +02:00
<h2>Private Key</h2>
2024-03-25 11:33:38 +01:00
<x-modal-input buttonTitle="+ Add" title="New Private Key">
<livewire:security.private-key.create />
</x-modal-input>
2023-06-16 13:13:09 +02:00
<x-forms.button wire:click.prevent='checkConnection'>
Check connection
</x-forms.button>
2023-06-15 14:18:49 +02:00
</div>
2023-06-16 13:13:09 +02:00
<div class="flex flex-col gap-2 pb-6">
2023-06-15 14:18:49 +02:00
@if (data_get($server, 'privateKey.uuid'))
2023-06-16 13:13:09 +02:00
<div>
Currently attached Private Key:
2023-12-07 19:06:32 +01:00
<a
href="{{ route('security.private-key.show', ['private_key_uuid' => data_get($server, 'privateKey.uuid')]) }}">
2024-03-24 16:00:25 +01:00
<button class="dark:text-white btn-link">{{ data_get($server, 'privateKey.name') }}</button>
2023-06-16 13:13:09 +02:00
</a>
</div>
2023-06-15 14:18:49 +02:00
@else
2023-06-16 12:35:40 +02:00
<div class="">No private key attached.</div>
2023-06-15 14:18:49 +02:00
@endif
2023-06-16 13:13:09 +02:00
2023-06-15 14:18:49 +02:00
</div>
<h3 class="pb-4">Choose another Key</h3>
<div class="grid grid-cols-3 gap-2">
@forelse ($privateKeys as $private_key)
2024-04-03 13:45:49 +02:00
<div class="box group" wire:click='setPrivateKey({{ $private_key->id }})'>
<div class="flex flex-col ">
<div class="box-title">{{ $private_key->name }}</div>
<div class="box-description">{{ $private_key->description }}</div>
</div>
2024-03-25 11:33:38 +01:00
</div>
@empty
2024-03-21 14:30:35 +01:00
<div>No private keys found. </div>
@endforelse
</div>
2023-05-03 12:38:57 +02:00
</div>