2023-07-28 11:31:47 +00:00
|
|
|
<div>
|
|
|
|
<x-modal yesOrNo modalId="deleteDestination" modalTitle="Delete Destination">
|
|
|
|
<x-slot:modalBody>
|
|
|
|
<p>This destination will be deleted. It is not reversible. <br>Please think again.</p>
|
|
|
|
</x-slot:modalBody>
|
|
|
|
</x-modal>
|
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>
|
2023-07-28 11:31:47 +00:00
|
|
|
@if ($destination->network !== 'coolify')
|
|
|
|
<x-forms.button isError isModal modalId="deleteDestination">
|
2023-06-15 12:18:49 +00:00
|
|
|
Delete
|
|
|
|
</x-forms.button>
|
|
|
|
@endif
|
2023-05-04 08:45:09 +00:00
|
|
|
</div>
|
2023-06-13 08:02:58 +00:00
|
|
|
|
|
|
|
@if ($destination->getMorphClass() === 'App\Models\StandaloneDocker')
|
2023-08-14 12:00:10 +00:00
|
|
|
<div class="subtitle ">A Docker network in a non-swarm environment</div>
|
2023-06-13 08:02:58 +00:00
|
|
|
@else
|
2023-08-14 12:00:10 +00:00
|
|
|
<div class="subtitle ">Your swarm docker network. WIP</div>
|
2023-06-13 08:02:58 +00:00
|
|
|
@endif
|
|
|
|
<div class="flex gap-2">
|
2023-08-11 18:19:42 +00:00
|
|
|
<x-forms.input id="destination.name" label="Name" />
|
|
|
|
<x-forms.input id="destination.server.ip" label="Server IP" readonly />
|
2023-06-13 08:02:58 +00:00
|
|
|
@if ($destination->getMorphClass() === 'App\Models\StandaloneDocker')
|
2023-08-11 18:19:42 +00:00
|
|
|
<x-forms.input id="destination.network" label="Docker Network" readonly />
|
2023-06-13 08:02:58 +00:00
|
|
|
@endif
|
|
|
|
</div>
|
2023-05-04 08:45:09 +00:00
|
|
|
</form>
|
|
|
|
</div>
|