2023-05-04 22:39:40 +02: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 10:45:09 +02:00
|
|
|
<form class="flex flex-col gap-4" wire:submit.prevent='submit'>
|
2023-05-25 14:05:44 +02:00
|
|
|
<x-forms.input id="destination.name" label="Name" />
|
|
|
|
<x-forms.input id="destination.server.ip" label="Server IP" readonly />
|
2023-05-04 10:45:09 +02:00
|
|
|
@if ($destination->getMorphClass() === 'App\Models\StandaloneDocker')
|
2023-05-25 14:05:44 +02:00
|
|
|
<x-forms.input id="destination.network" label="Docker Network" readonly />
|
2023-05-04 10:45:09 +02:00
|
|
|
@endif
|
|
|
|
<div>
|
2023-05-25 14:05:44 +02:00
|
|
|
<x-forms.button type="submit">
|
2023-05-16 11:02:51 +02:00
|
|
|
Save
|
2023-05-25 14:05:44 +02:00
|
|
|
</x-forms.button>
|
|
|
|
<x-forms.button x-on:click.prevent="deleteDestination = true">
|
2023-05-04 10:45:09 +02:00
|
|
|
Delete
|
2023-05-25 14:05:44 +02:00
|
|
|
</x-forms.button>
|
2023-05-04 10:45:09 +02:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|