This commit is contained in:
Andras Bacsai
2023-05-03 10:41:25 +02:00
parent 499101ae9c
commit c295a3e90b
5 changed files with 22 additions and 12 deletions

View File

@@ -1,11 +1,17 @@
<div>
@if ($servers->count() > 0)
<h1>Choose a server</h1>
@endif
@forelse ($servers as $server)
<button @if ($chosenServer == $server->id) class="bg-blue-500" @endif
wire:click="chooseServer({{ $server->id }})">{{ $server->name }}</button>
@empty
No servers
No servers found.
<p>Did you forget to add a destination on the server?</p>
@endforelse
@isset($chosenServer)
<h1>Choose a destination</h1>
<div>
@foreach ($standalone_docker as $standalone)
<button @if ($chosenDestination?->uuid == $standalone->uuid) class="bg-blue-500" @endif
@@ -19,8 +25,9 @@
@endisset
@isset($chosenDestination)
<form wire:submit.prevent='submit'>
<x-form-input id="public_repository_url" label="Repository URL" />
<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" />
<x-form-input instantSave type="checkbox" id="is_static" label="Static Site?" />
@if ($is_static)
<x-form-input id="publish_directory" label="Publish Directory" />