2024-03-21 11:44:32 +00:00
< form wire : submit . prevent = 'submit' class = " flex flex-col gap-4 pb-2 " >
< div >
< div class = " flex gap-2 " >
2023-10-12 07:12:46 +00:00
< h2 > Service Stack </ h2 >
2024-06-25 08:18:21 +00:00
< x - forms . button wire : target = 'submit' type = " submit " > Save </ x - forms . button >
2024-04-16 10:41:44 +00:00
< x - modal - input buttonTitle = " Edit Compose File " title = " Edit Docker Compose " : closeOutside = " false " >
2024-03-25 10:33:38 +00:00
< livewire : project . service . edit - compose serviceId = " { { $service->id }} " />
</ x - modal - input >
2023-10-12 07:12:46 +00:00
</ div >
2024-03-21 11:44:32 +00:00
< div > Configuration </ div >
2023-10-12 07:12:46 +00:00
</ 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 >
2024-01-21 13:30:03 +00:00
< div class = " w-96 " >
2024-02-15 19:44:01 +00:00
< x - forms . checkbox instantSave id = " service.connect_to_docker_network " label = " Connect To Predefined Network "
2024-03-27 10:07:29 +00:00
helper = " By default, you do not reach the Coolify defined networks.<br>Starting a docker compose based resource will have an internal network. <br>If you connect to a Coolify defined network, you maybe need to use different internal DNS names to connect to a resource.<br><br>For more information, check <a class='underline dark:text-white' target='_blank' href='https://coolify.io/docs/knowledge-base/docker/compose#connect-to-predefined-networks'>this</a>. " />
2024-01-21 13:30:03 +00:00
</ div >
2024-04-16 07:23:31 +00:00
@ if ( $fields -> count () > 0 )
2023-11-13 10:09:21 +00:00
< div >
< h3 > Service Specific Configuration </ h3 >
</ div >
< div class = " grid grid-cols-2 gap-2 " >
2023-11-20 14:01:35 +00:00
@ foreach ( $fields as $serviceName => $field )
2024-04-17 10:48:01 +00:00
< div class = " flex items-center gap-2 " >< span
class = " font-bold " > {{ data_get ( $field , 'serviceName' ) }} </ span > {{ data_get ( $field , 'name' ) }} < x - helper
helper = " Variable name: { { $serviceName }} " /></ div >
2023-11-24 20:04:15 +00:00
< x - forms . input type = " { { data_get( $field , 'isPassword') ? 'password' : 'text' }} "
required = " { { str(data_get( $field , 'rules'))?->contains('required') }} "
2023-11-13 10:09:21 +00:00
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 >