coolify/resources/views/livewire/project/application/source.blade.php

53 lines
2.2 KiB
PHP
Raw Normal View History

2023-04-19 12:42:15 +02:00
<div>
2023-06-12 14:38:32 +02:00
<form wire:submit.prevent='submit' class="flex flex-col">
2023-05-31 10:19:29 +02:00
<div class="flex items-center gap-2">
2023-06-02 12:34:45 +02:00
<h2>Source</h2>
2023-05-25 14:05:44 +02:00
<x-forms.button type="submit">Save</x-forms.button>
2023-06-12 14:38:32 +02:00
<a target="_blank" class="hover:no-underline" href="{{ $application?->gitBranchLocation }}">
2023-06-05 12:07:55 +02:00
<x-forms.button>
2023-06-14 11:03:54 +02:00
Open Repository
2023-05-31 10:19:29 +02:00
<x-external-link />
</x-forms.button>
2023-05-17 09:26:50 +02:00
</a>
2023-06-14 11:03:54 +02:00
@if (!$application->source->is_public)
<a target="_blank" class="hover:no-underline" href="{{ get_installation_path($application->source) }}">
<x-forms.button>
Open Git App
<x-external-link />
</x-forms.button>
</a>
@endif
2023-06-12 14:38:32 +02:00
<a target="_blank" class="flex hover:no-underline" href="{{ $application?->gitCommits }}">
2023-07-13 13:16:24 +02:00
<x-forms.button>Open Commits on Git
2023-05-31 10:19:29 +02:00
<x-external-link />
</x-forms.button>
2023-05-26 10:20:09 +02:00
</a>
2023-05-17 09:26:50 +02:00
</div>
2023-07-13 13:16:24 +02:00
<div class="pb-4">Code source of your application.</div>
<div class="flex gap-2">
<x-forms.input placeholder="coollabsio/coolify-example" id="application.git_repository"
label="Repository" />
<x-forms.input placeholder="main" id="application.git_branch" label="Branch" />
</div>
<div class="flex items-end gap-2">
<x-forms.input placeholder="HEAD" id="application.git_commit_sha" placeholder="HEAD" label="Commit SHA" />
</div>
@isset($application->private_key_id)
<h3 class="pt-4">Deploy Key</h3>
<div class="py-2 pt-4">Currently attache Private Key: <span
class="text-warning">{{ $application->private_key->name }}</span>
</div>
2023-07-13 13:16:24 +02:00
<h4 class="py-2 ">Select another Private Key</h4>
2023-06-12 14:38:32 +02:00
<div class="flex gap-2">
@foreach ($private_keys as $key)
<x-forms.button wire:click.defer="setPrivateKey('{{ $key->id }}')">{{ $key->name }}
</x-forms.button>
@endforeach
</div>
@endisset
2023-05-17 09:26:50 +02:00
</form>
2023-04-19 12:42:15 +02:00
</div>