2023-06-15 13:38:15 +00:00
|
|
|
<div>
|
2024-11-03 21:19:41 +00:00
|
|
|
<form class="flex flex-col">
|
|
|
|
|
<div class="flex items-center gap-2">
|
|
|
|
|
<h1>Destination</h1>
|
2025-08-26 08:27:31 +00:00
|
|
|
<x-forms.button canGate="update" :canResource="$destination" wire:click.prevent='submit'
|
|
|
|
|
type="submit">Save</x-forms.button>
|
2024-11-03 21:19:41 +00:00
|
|
|
@if ($network !== 'coolify')
|
|
|
|
|
<x-modal-confirmation title="Confirm Destination Deletion?" buttonTitle="Delete Destination" isErrorButton
|
|
|
|
|
submitAction="delete" :actions="['This will delete the selected destination/network.']" confirmationText="{{ $destination->name }}"
|
|
|
|
|
confirmationLabel="Please confirm the execution of the actions by entering the Destination Name below"
|
2025-08-26 08:27:31 +00:00
|
|
|
shortConfirmationLabel="Destination Name" :confirmWithPassword="false" step2ButtonText="Permanently Delete"
|
|
|
|
|
canGate="delete" :canResource="$destination" />
|
2024-11-03 21:19:41 +00:00
|
|
|
@endif
|
2023-07-14 11:38:24 +00:00
|
|
|
</div>
|
2024-11-03 21:19:41 +00:00
|
|
|
|
|
|
|
|
@if ($destination->getMorphClass() === 'App\Models\StandaloneDocker')
|
2024-11-03 22:08:24 +00:00
|
|
|
<div class="subtitle ">A simple Docker network.</div>
|
2024-11-03 21:19:41 +00:00
|
|
|
@else
|
2024-11-03 22:08:24 +00:00
|
|
|
<div class="subtitle ">A swarm Docker network. WIP</div>
|
2024-11-03 21:19:41 +00:00
|
|
|
@endif
|
|
|
|
|
<div class="flex gap-2">
|
2025-08-26 08:27:31 +00:00
|
|
|
<x-forms.input canGate="update" :canResource="$destination" id="name" label="Name" />
|
2024-11-03 21:19:41 +00:00
|
|
|
<x-forms.input id="serverIp" label="Server IP" readonly />
|
|
|
|
|
@if ($destination->getMorphClass() === 'App\Models\StandaloneDocker')
|
|
|
|
|
<x-forms.input id="network" label="Docker Network" readonly />
|
2023-07-14 11:38:24 +00:00
|
|
|
@endif
|
2023-08-23 08:14:39 +00:00
|
|
|
</div>
|
2024-11-03 21:19:41 +00:00
|
|
|
</form>
|
2023-06-15 13:38:15 +00:00
|
|
|
</div>
|