lasthourcloud/resources/views/livewire/project/application/general.blade.php

59 lines
3.4 KiB
PHP
Raw Normal View History

2023-04-19 10:42:15 +00:00
<div>
<form wire:submit.prevent='submit' class="flex flex-col">
2023-04-25 12:43:35 +00:00
<div class="flex flex-col gap-2 xl:flex-row">
<div class="flex flex-col w-96">
2023-05-03 12:09:10 +00:00
<x-inputs.input id="application.name" label="Name" required />
<x-inputs.input id="application.fqdn" label="FQDN" />
2023-04-19 10:42:15 +00:00
</div>
2023-04-25 12:43:35 +00:00
<div class="flex flex-col w-96">
2023-05-03 12:09:10 +00:00
<x-inputs.input id="application.install_command" label="Install Command" />
<x-inputs.input id="application.build_command" label="Build Command" />
<x-inputs.input id="application.start_command" label="Start Command" />
2023-05-04 09:43:30 +00:00
<x-inputs.select id="application.build_pack" label="Build Pack" required>
<option value="nixpacks">Nixpacks</option>
2023-05-08 09:51:03 +00:00
<option disabled value="docker">Docker</option>
<option disabled value="compose">Compose</option>
2023-05-04 09:43:30 +00:00
</x-inputs.select>
2023-04-25 13:48:45 +00:00
@if ($application->settings->is_static)
2023-05-04 09:43:30 +00:00
<x-inputs.select id="application.static_image" label="Static Image" required>
<option value="nginx:alpine">nginx:alpine</option>
2023-05-08 09:51:03 +00:00
<option disabled value="apache:alpine">apache:alpine</option>
2023-05-04 09:43:30 +00:00
</x-inputs.select>
2023-04-25 13:48:45 +00:00
@endif
2023-04-19 10:42:15 +00:00
</div>
2023-04-25 12:43:35 +00:00
<div class="flex flex-col w-96">
2023-05-03 12:09:10 +00:00
<x-inputs.input id="application.base_directory" label="Base Directory" />
2023-04-26 11:01:09 +00:00
@if ($application->settings->is_static)
2023-05-03 12:09:10 +00:00
<x-inputs.input id="application.publish_directory" label="Publish Directory" required />
2023-04-26 11:01:09 +00:00
@else
2023-05-03 12:09:10 +00:00
<x-inputs.input id="application.publish_directory" label="Publish Directory" />
2023-04-26 11:01:09 +00:00
@endif
2023-04-19 10:42:15 +00:00
</div>
2023-04-25 12:43:35 +00:00
<div class="flex flex-col w-96">
2023-04-26 11:01:09 +00:00
@if ($application->settings->is_static)
2023-05-04 08:45:09 +00:00
<x-inputs.input id="application.ports_exposes" label="Ports Exposes" readonly />
2023-04-26 11:01:09 +00:00
@else
2023-05-03 12:09:10 +00:00
<x-inputs.input id="application.ports_exposes" label="Ports Exposes" required />
2023-04-26 11:01:09 +00:00
@endif
2023-05-03 12:09:10 +00:00
<x-inputs.input id="application.ports_mappings" label="Ports Mappings" />
2023-04-24 11:25:02 +00:00
</div>
2023-04-19 10:42:15 +00:00
</div>
2023-05-04 08:45:09 +00:00
<x-inputs.button class="mx-auto mt-4 text-white bg-neutral-800 hover:bg-violet-600" type="submit">
2023-04-19 10:42:15 +00:00
Submit
2023-05-03 12:09:10 +00:00
</x-inputs.button>
2023-04-19 10:42:15 +00:00
</form>
2023-05-08 09:51:03 +00:00
<div class="flex flex-col pt-4">
2023-05-03 12:09:10 +00:00
<x-inputs.input instantSave type="checkbox" id="is_static" label="Static website?" />
<x-inputs.input instantSave type="checkbox" id="is_git_submodules_allowed" label="Git Submodules Allowed?" />
<x-inputs.input instantSave type="checkbox" id="is_git_lfs_allowed" label="Git LFS Allowed?" />
<x-inputs.input instantSave type="checkbox" id="is_debug" label="Debug" />
2023-05-08 09:51:03 +00:00
<x-inputs.input disabled instantSave type="checkbox" id="is_auto_deploy" label="Auto Deploy?" />
<x-inputs.input disabled instantSave type="checkbox" id="is_dual_cert" label="Dual Certs?" />
<x-inputs.input disabled instantSave type="checkbox" id="is_previews" label="Previews?" />
<x-inputs.input disabled instantSave type="checkbox" id="is_custom_ssl" label="Is Custom SSL?" />
<x-inputs.input disabled instantSave type="checkbox" id="is_http2" label="Is Http2?" />
2023-04-19 12:00:31 +00:00
</div>
2023-04-19 10:42:15 +00:00
</div>