mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-20 10:21:37 +00:00
- refactoring architecture - fix incomplete ssh logs - code editor for scripts in the app - remove Jobs and SSHCommands
47 lines
1.7 KiB
PHP
47 lines
1.7 KiB
PHP
<div>
|
|
<x-secondary-button x-data="" x-on:click.prevent="$dispatch('open-modal', 'add-existing-key')">
|
|
{{ __("Add existing Key") }}
|
|
</x-secondary-button>
|
|
|
|
<x-modal name="add-existing-key">
|
|
<form
|
|
id="add-existing-key-form"
|
|
hx-post="{{ route("servers.ssh-keys.deploy", ["server" => $server]) }}"
|
|
hx-swap="outerHTML"
|
|
hx-select="#add-existing-key-form"
|
|
class="p-6"
|
|
>
|
|
<h2 class="text-lg font-medium text-gray-900 dark:text-gray-100">
|
|
{{ __("Add existing Key") }}
|
|
</h2>
|
|
|
|
<div class="mt-6">
|
|
<x-input-label for="key_id" :value="__('SSH Key')" />
|
|
<x-select-input id="key_id" name="key_id" class="mt-1 w-full">
|
|
<option value="" selected disabled>
|
|
{{ __("Select") }}
|
|
</option>
|
|
@foreach (auth()->user()->sshKeys as $key)
|
|
<option value="{{ $key->id }}" @if($key->id === old('key_id')) selected @endif>
|
|
{{ $key->name }}
|
|
</option>
|
|
@endforeach
|
|
</x-select-input>
|
|
@error("key_id")
|
|
<x-input-error class="mt-2" :messages="$message" />
|
|
@enderror
|
|
</div>
|
|
|
|
<div class="mt-6 flex justify-end">
|
|
<x-secondary-button type="button" x-on:click="$dispatch('close')">
|
|
{{ __("Cancel") }}
|
|
</x-secondary-button>
|
|
|
|
<x-primary-button class="ml-3" hx-disable>
|
|
{{ __("Add") }}
|
|
</x-primary-button>
|
|
</div>
|
|
</form>
|
|
</x-modal>
|
|
</div>
|