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

37 lines
1.4 KiB
PHP
Raw Normal View History

2023-06-15 12:18:49 +00:00
<div>
2024-10-17 12:56:36 +00:00
<div class="flex items-end gap-2">
2023-06-22 07:38:44 +00:00
<h2>Private Key</h2>
2024-03-25 10:33:38 +00:00
<x-modal-input buttonTitle="+ Add" title="New Private Key">
<livewire:security.private-key.create />
</x-modal-input>
2023-06-16 11:13:09 +00:00
<x-forms.button wire:click.prevent='checkConnection'>
Check connection
</x-forms.button>
2023-06-15 12:18:49 +00:00
</div>
2023-06-16 11:13:09 +00:00
2024-10-17 12:56:36 +00:00
<div class="flex flex-col gap-2">
<div class="pb-4">Change your server's private key.</div>
2023-06-15 12:18:49 +00:00
</div>
2024-10-17 12:56:36 +00:00
<div class="grid xl:grid-cols-2 grid-cols-1 gap-2">
@forelse ($privateKeys as $private_key)
2024-10-17 12:56:36 +00:00
<div class="box-without-bg justify-between dark:bg-coolgray-100 bg-white items-center">
2024-04-03 11:45:49 +00:00
<div class="flex flex-col ">
<div class="box-title">{{ $private_key->name }}</div>
<div class="box-description">{{ $private_key->description }}</div>
</div>
2024-10-17 12:56:36 +00:00
@if (data_get($server, 'privateKey.uuid') !== $private_key->uuid)
<x-forms.button wire:click='setPrivateKey({{ $private_key->id }})'>
Use this key
</x-forms.button>
@else
<x-forms.button disabled>
Currently used
</x-forms.button>
@endif
2024-03-25 10:33:38 +00:00
</div>
@empty
2024-03-21 13:30:35 +00:00
<div>No private keys found. </div>
@endforelse
</div>
2023-05-03 10:38:57 +00:00
</div>