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

28 lines
1.2 KiB
PHP
Raw Normal View History

2023-05-04 20:39:40 +00:00
<div x-data="{ deleteDestination: false }">
<x-naked-modal show="deleteDestination" message='Are you sure you would like to delete this destination?' />
2023-06-13 08:02:58 +00:00
<form class="flex flex-col">
<div class="flex items-center gap-2">
<h1>Destination</h1>
<x-forms.button wire:click.prevent='submit' type="submit">
2023-05-16 09:02:51 +00:00
Save
2023-05-25 12:05:44 +00:00
</x-forms.button>
<x-forms.button x-on:click.prevent="deleteDestination = true">
2023-05-04 08:45:09 +00:00
Delete
2023-05-25 12:05:44 +00:00
</x-forms.button>
2023-05-04 08:45:09 +00:00
</div>
2023-06-13 08:02:58 +00:00
@if ($destination->getMorphClass() === 'App\Models\StandaloneDocker')
<div class="pt-2 pb-10 text-sm">Your standalone docker network.</div>
@else
<div class="pt-2 pb-10 text-sm">Your swarm docker network.</div>
@endif
<div class="flex gap-2">
<x-forms.input id="destination.name" label="Name" />
<x-forms.input id="destination.server.ip" label="Server IP" readonly />
@if ($destination->getMorphClass() === 'App\Models\StandaloneDocker')
<x-forms.input id="destination.network" label="Docker Network" readonly />
@endif
</div>
2023-05-04 08:45:09 +00:00
</form>
</div>