This commit is contained in:
Andras Bacsai
2023-05-22 15:47:40 +02:00
parent 1dbd1065f9
commit a044354294
25 changed files with 332 additions and 209 deletions

View File

@@ -2,7 +2,7 @@
<h1>Command Center</h1>
<form class="flex items-end justify-center gap-2" wire:submit.prevent='runCommand'>
<x-inputs.input placeholder="ls -l" autofocus noDirty noLabel id="command" label="Command" required />
<select wire:model.defer="server">
<x-inputs.select label="Server" id="server" required>
@foreach ($servers as $server)
@if ($loop->first)
<option selected value="{{ $server->uuid }}">{{ $server->name }}</option>
@@ -10,7 +10,7 @@
<option value="{{ $server->uuid }}">{{ $server->name }}</option>
@endif
@endforeach
</select>
</x-inputs.select>
<x-inputs.button class="btn-xl" type="submit">Run</x-inputs.button>
</form>
<div class="container w-full pt-10 mx-auto">