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

32 lines
1.3 KiB
PHP
Raw Normal View History

2023-05-10 13:05:32 +02:00
<div>
2023-06-07 17:11:21 +02:00
<h1>Create a new Application</h1>
2023-06-05 13:50:34 +02:00
<div class="pb-4 text-sm">Deploy any public or private git repositories through a Deploy Key.</div>
<h3 class="py-2">Select a private key</h3>
@foreach ($private_keys as $key)
@if ($private_key_id == $key->id)
<x-forms.button class="bg-coollabs hover:bg-coollabs-100"
wire:click.defer="setPrivateKey('{{ $key->id }}')">
{{ $key->name }}</x-forms.button>
@else
<x-forms.button wire:click.defer="setPrivateKey('{{ $key->id }}')">{{ $key->name }}
</x-forms.button>
@endif
@endforeach
2023-05-11 15:20:02 +02:00
@isset($private_key_id)
2023-06-05 13:50:34 +02:00
<form class="pt-6" wire:submit.prevent='submit'>
2023-05-10 13:05:32 +02:00
<div class="flex items-end gap-2 pb-2">
2023-05-25 14:05:44 +02:00
<x-forms.input class="w-96" id="repository_url" label="Repository URL" />
2023-05-10 13:05:32 +02:00
@if ($is_static)
2023-05-25 14:05:44 +02:00
<x-forms.input id="publish_directory" label="Publish Directory" />
2023-05-10 13:05:32 +02:00
@else
2023-05-25 14:05:44 +02:00
<x-forms.input type="number" id="port" label="Port" :readonly="$is_static" />
2023-05-10 13:05:32 +02:00
@endif
2023-06-05 13:50:34 +02:00
<x-forms.checkbox instantSave id="is_static" label="Static Site?" />
2023-05-10 13:05:32 +02:00
</div>
2023-05-25 14:05:44 +02:00
<x-forms.button type="submit">
2023-06-05 13:50:34 +02:00
Add New Application
2023-05-25 14:05:44 +02:00
</x-forms.button>
2023-05-10 13:05:32 +02:00
</form>
@endisset
</div>