2023-04-25 12:43:35 +00:00
|
|
|
<div>
|
2023-05-03 08:41:25 +00:00
|
|
|
@if ($servers->count() > 0)
|
|
|
|
<h1>Choose a server</h1>
|
|
|
|
@endif
|
2023-04-25 12:43:35 +00:00
|
|
|
@forelse ($servers as $server)
|
|
|
|
<button @if ($chosenServer == $server->id) class="bg-blue-500" @endif
|
|
|
|
wire:click="chooseServer({{ $server->id }})">{{ $server->name }}</button>
|
|
|
|
@empty
|
2023-05-03 08:41:25 +00:00
|
|
|
No servers found.
|
|
|
|
<p>Did you forget to add a destination on the server?</p>
|
2023-04-25 12:43:35 +00:00
|
|
|
@endforelse
|
2023-05-03 08:41:25 +00:00
|
|
|
|
2023-04-25 12:43:35 +00:00
|
|
|
@isset($chosenServer)
|
2023-05-03 08:41:25 +00:00
|
|
|
<h1>Choose a destination</h1>
|
2023-04-25 12:43:35 +00:00
|
|
|
<div>
|
|
|
|
@foreach ($standalone_docker as $standalone)
|
|
|
|
<button @if ($chosenDestination?->uuid == $standalone->uuid) class="bg-blue-500" @endif
|
|
|
|
wire:click="setDestination('{{ $standalone->uuid }}','StandaloneDocker')">{{ $standalone->network }}</button>
|
|
|
|
@endforeach
|
|
|
|
@foreach ($swarm_docker as $standalone)
|
|
|
|
<button @if ($chosenDestination?->uuid == $standalone->uuid) class="bg-blue-500" @endif
|
|
|
|
wire:click="setDestination('{{ $standalone->uuid }}','SwarmDocker')">{{ $standalone->uuid }}</button>
|
|
|
|
@endforeach
|
|
|
|
</div>
|
|
|
|
@endisset
|
|
|
|
|
|
|
|
@isset($chosenDestination)
|
2023-05-03 08:41:25 +00:00
|
|
|
<h1>Choose a repository</h1>
|
|
|
|
<form class="flex flex-col gap-2 w-96" wire:submit.prevent='submit'>
|
|
|
|
<x-form-input class="w-96" id="public_repository_url" label="Repository URL" />
|
2023-04-26 11:01:09 +00:00
|
|
|
<x-form-input instantSave type="checkbox" id="is_static" label="Static Site?" />
|
|
|
|
@if ($is_static)
|
|
|
|
<x-form-input id="publish_directory" label="Publish Directory" />
|
|
|
|
@else
|
|
|
|
<x-form-input type="number" id="port" label="Port" :disabled="$is_static" />
|
|
|
|
@endif
|
2023-04-25 12:43:35 +00:00
|
|
|
<button type="submit">
|
|
|
|
Submit
|
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
@endisset
|
|
|
|
|
|
|
|
</div>
|