lasthourcloud/resources/views/livewire/project/new/github-private-repository-deploy-key.blade.php

32 lines
1.2 KiB
PHP
Raw Normal View History

2023-05-10 11:05:32 +00:00
<div>
2023-05-11 13:20:02 +00:00
<div>
<h1>Select a private key</h1>
@foreach ($private_keys as $key)
@if ($private_key_id == $key->id)
2023-05-25 12:05:44 +00:00
<x-forms.button class="bg-blue-500" wire:click.defer="setPrivateKey('{{ $key->id }}')">
{{ $key->name }}</x-forms.button>
2023-05-11 13:20:02 +00:00
@else
2023-05-25 12:05:44 +00:00
<x-forms.button wire:click.defer="setPrivateKey('{{ $key->id }}')">{{ $key->name }}
</x-forms.button>
2023-05-11 13:20:02 +00:00
@endif
@endforeach
</div>
@isset($private_key_id)
2023-05-10 11:05:32 +00:00
<h1>Choose a repository</h1>
<form wire:submit.prevent='submit'>
<div class="flex items-end gap-2 pb-2">
2023-05-25 12:05:44 +00:00
<x-forms.input class="w-96" id="repository_url" label="Repository URL" />
2023-05-10 11:05:32 +00:00
@if ($is_static)
2023-05-25 12:05:44 +00:00
<x-forms.input id="publish_directory" label="Publish Directory" />
2023-05-10 11:05:32 +00:00
@else
2023-05-25 12:05:44 +00:00
<x-forms.input type="number" id="port" label="Port" :readonly="$is_static" />
2023-05-10 11:05:32 +00:00
@endif
2023-05-25 12:05:44 +00:00
<x-forms.input instantSave type="checkbox" id="is_static" label="Static Site?" />
2023-05-10 11:05:32 +00:00
</div>
2023-05-25 12:05:44 +00:00
<x-forms.button type="submit">
2023-05-10 11:05:32 +00:00
Submit
2023-05-25 12:05:44 +00:00
</x-forms.button>
2023-05-10 11:05:32 +00:00
</form>
@endisset
</div>