lasthourcloud/resources/views/livewire/server/form.blade.php

26 lines
977 B
PHP
Raw Normal View History

2023-04-25 08:47:13 +00:00
<div>
<form wire:submit.prevent='submit' class="flex flex-col">
<div class="flex flex-col gap-2 xl:flex-row">
<div class="flex flex-col w-96">
2023-04-25 12:43:35 +00:00
<x-form-input id="server.name" label="Name" required />
<x-form-input id="server.description" label="Description" />
2023-04-25 08:47:13 +00:00
</div>
<div class="flex flex-col w-96">
2023-04-25 12:43:35 +00:00
<x-form-input id="server.ip" label="IP Address" required />
<x-form-input id="server.user" label="User" required />
<x-form-input type="number" id="server.port" label="Port" required />
2023-04-25 08:47:13 +00:00
</div>
</div>
<div>
<button class="w-16 mt-4" type="submit">
Submit
</button>
<button wire:click.prevent='checkConnection'>Check Connection</button>
</div>
2023-04-25 08:47:13 +00:00
</form>
@isset($uptime)
<p>Connection OK</p>
<p>Uptime: {{ $uptime }}</p>
@endisset
2023-04-25 08:47:13 +00:00
</div>