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

31 lines
1.4 KiB
PHP
Raw Normal View History

2023-05-04 22:39:40 +02:00
<div x-data="{ deleteDestination: false }">
2023-06-16 15:56:25 +02:00
<x-naked-modal show="deleteDestination" title="Delete Destination"
message='This destination will be deleted. It is not reversible. <br>Please think again.' />
2023-06-13 10:02:58 +02: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 11:02:51 +02:00
Save
2023-05-25 14:05:44 +02:00
</x-forms.button>
2023-06-15 15:15:27 +02:00
@if ($destination->server->id === 0 && $destination->network !== 'coolify')
2023-06-15 14:18:49 +02:00
<x-forms.button x-on:click.prevent="deleteDestination = true">
Delete
</x-forms.button>
@endif
2023-05-04 10:45:09 +02:00
</div>
2023-06-13 10:02:58 +02:00
@if ($destination->getMorphClass() === 'App\Models\StandaloneDocker')
2023-06-16 12:35:40 +02:00
<div class="pt-2 pb-10 ">A Docker network in a non-swarm environment</div>
2023-06-13 10:02:58 +02:00
@else
2023-06-16 12:35:40 +02:00
<div class="pt-2 pb-10 ">Your swarm docker network. WIP</div>
2023-06-13 10:02:58 +02:00
@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 10:45:09 +02:00
</form>
</div>