This commit is contained in:
Andras Bacsai
2023-05-25 14:05:44 +02:00
parent ea2a13dff2
commit d2b0823cd0
40 changed files with 284 additions and 279 deletions

View File

@@ -1,18 +1,18 @@
<div x-data="{ deleteDestination: false }">
<x-naked-modal show="deleteDestination" message='Are you sure you would like to delete this destination?' />
<form class="flex flex-col gap-4" wire:submit.prevent='submit'>
<x-inputs.input id="destination.name" label="Name" />
<x-inputs.input id="destination.server.ip" label="Server IP" readonly />
<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-inputs.input id="destination.network" label="Docker Network" readonly />
<x-forms.input id="destination.network" label="Docker Network" readonly />
@endif
<div>
<x-inputs.button type="submit">
<x-forms.button type="submit">
Save
</x-inputs.button>
<x-inputs.button x-on:click.prevent="deleteDestination = true">
</x-forms.button>
<x-forms.button x-on:click.prevent="deleteDestination = true">
Delete
</x-inputs.button>
</x-forms.button>
</div>
</form>
</div>