coolify/resources/views/livewire/run-command.blade.php

20 lines
828 B
PHP
Raw Normal View History

2023-03-20 13:04:22 +01:00
<div>
2023-12-07 19:06:32 +01:00
<form class="flex flex-col justify-center gap-2 xl:items-end xl:flex-row" wire:submit='runCommand'>
2023-08-11 20:19:42 +02:00
<x-forms.input placeholder="ls -l" autofocus id="command" label="Command" required />
2023-05-25 14:05:44 +02:00
<x-forms.select label="Server" id="server" required>
2023-05-04 10:00:08 +02:00
@foreach ($servers as $server)
2023-05-12 15:39:07 +02:00
@if ($loop->first)
<option selected value="{{ $server->uuid }}">{{ $server->name }}</option>
@else
<option value="{{ $server->uuid }}">{{ $server->name }}</option>
@endif
2023-05-04 10:00:08 +02:00
@endforeach
2023-05-25 14:05:44 +02:00
</x-forms.select>
2023-06-12 12:21:48 +02:00
<x-forms.button type="submit">Execute Command
2023-06-06 08:43:01 +02:00
</x-forms.button>
2023-05-04 10:00:08 +02:00
</form>
2024-03-20 12:54:06 +01:00
<div class="w-full pt-10 mx-auto">
<livewire:activity-monitor header="Command output" />
2023-05-08 09:16:50 +02:00
</div>
2023-03-20 13:04:22 +01:00
</div>