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

29 lines
1.2 KiB
PHP
Raw Normal View History

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