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-05-04 08:45:09 +00:00
|
|
|
<form class="flex flex-col gap-4" wire:submit.prevent='submit'>
|
|
|
|
<x-inputs.input id="destination.name" label="Name" />
|
|
|
|
<x-inputs.input id="destination.server.ip" label="Server IP" readonly />
|
|
|
|
@if ($destination->getMorphClass() === 'App\Models\StandaloneDocker')
|
|
|
|
<x-inputs.input id="destination.network" label="Docker Network" readonly />
|
|
|
|
@endif
|
|
|
|
<div>
|
|
|
|
<x-inputs.button>
|
|
|
|
Submit
|
|
|
|
</x-inputs.button>
|
2023-05-09 08:01:57 +00:00
|
|
|
<x-inputs.button isWarning x-on:click.prevent="deleteDestination = true">
|
2023-05-04 08:45:09 +00:00
|
|
|
Delete
|
|
|
|
</x-inputs.button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|