2023-10-12 07:12:46 +00:00
|
|
|
<form wire:submit.prevent='submit' class="flex flex-col gap-4 pb-2">
|
|
|
|
<div class="flex gap-2">
|
|
|
|
<div>
|
|
|
|
<h2>Service Stack</h2>
|
|
|
|
<div>Configuration</div>
|
|
|
|
</div>
|
|
|
|
<x-forms.button type="submit">Save</x-forms.button>
|
|
|
|
<x-forms.button class="w-64" onclick="composeModal.showModal()">Edit Compose
|
|
|
|
File</x-forms.button>
|
|
|
|
</div>
|
|
|
|
<div class="flex gap-2">
|
2023-11-11 20:32:41 +00:00
|
|
|
<x-forms.input id="service.name" required label="Service Name" placeholder="My super wordpress site" />
|
2023-10-12 07:12:46 +00:00
|
|
|
<x-forms.input id="service.description" label="Description" />
|
|
|
|
</div>
|
2023-11-13 10:09:21 +00:00
|
|
|
@if ($fields)
|
|
|
|
<div>
|
|
|
|
<h3>Service Specific Configuration</h3>
|
|
|
|
</div>
|
|
|
|
<div class="grid grid-cols-2 gap-2">
|
|
|
|
@foreach ($fields as $serviceName => $fields)
|
|
|
|
<x-forms.input type="{{ data_get($fields, 'isPassword') ? 'password' : 'text' }}" required
|
|
|
|
helper="Variable name: {{ $serviceName }}"
|
|
|
|
label="{{ data_get($fields, 'serviceName') }} {{ data_get($fields, 'name') }}"
|
|
|
|
id="fields.{{ $serviceName }}.value"></x-forms.input>
|
|
|
|
@endforeach
|
2023-11-11 20:32:41 +00:00
|
|
|
</div>
|
2023-11-13 10:09:21 +00:00
|
|
|
@endif
|
2023-10-12 07:12:46 +00:00
|
|
|
</form>
|