2023-05-10 11:05:32 +00:00
|
|
|
<div>
|
2023-06-05 11:50:34 +00:00
|
|
|
<h1>New Application</h1>
|
|
|
|
<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 13:20:02 +00:00
|
|
|
@isset($private_key_id)
|
2023-06-05 11:50:34 +00:00
|
|
|
<form class="pt-6" wire:submit.prevent='submit'>
|
2023-05-10 11:05:32 +00:00
|
|
|
<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-06-05 11:50:34 +00:00
|
|
|
<x-forms.checkbox instantSave 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-06-05 11:50:34 +00:00
|
|
|
Add New Application
|
2023-05-25 12:05:44 +00:00
|
|
|
</x-forms.button>
|
2023-05-10 11:05:32 +00:00
|
|
|
</form>
|
|
|
|
@endisset
|
|
|
|
</div>
|