Files
coolify/resources/views/livewire/destination/show.blade.php
T

34 lines
1.7 KiB
PHP
Raw Normal View History

2023-06-15 15:38:15 +02:00
<div>
2024-11-03 22:19:41 +01:00
<form class="flex flex-col">
<div class="flex items-center gap-2">
<h1>Destination</h1>
<x-forms.button canGate="update" :canResource="$destination" wire:click.prevent='submit'
type="submit">Save</x-forms.button>
2024-11-03 22:19:41 +01: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"
shortConfirmationLabel="Destination Name" :confirmWithPassword="false" step2ButtonText="Permanently Delete"
canGate="delete" :canResource="$destination" />
2024-11-03 22:19:41 +01:00
@endif
2023-07-14 13:38:24 +02:00
</div>
2024-11-03 22:19:41 +01:00
@if ($destination->getMorphClass() === 'App\Models\StandaloneDocker')
2024-11-03 23:08:24 +01:00
<div class="subtitle ">A simple Docker network.</div>
2024-11-03 22:19:41 +01:00
@else
<div class="subtitle flex items-center gap-2">A swarm Docker network.
<x-deprecated-badge />
</div>
2024-11-03 22:19:41 +01:00
@endif
@include('livewire.destination.navbar', ['destination' => $destination])
<div class="flex gap-2 pt-4">
<x-forms.input canGate="update" :canResource="$destination" id="name" label="Name" />
2024-11-03 22:19:41 +01: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 13:38:24 +02:00
@endif
2023-08-23 10:14:39 +02:00
</div>
2024-11-03 22:19:41 +01:00
</form>
2023-06-15 15:38:15 +02:00
</div>