60 lines
3.2 KiB
PHP
60 lines
3.2 KiB
PHP
<div>
|
|
<form wire:submit.prevent='submit' class="flex flex-col">
|
|
<div class="flex gap-2">
|
|
<h2>General</h2>
|
|
<x-inputs.button type="submit">
|
|
Save
|
|
</x-inputs.button>
|
|
</div>
|
|
<div class="flex flex-col gap-2 pb-4">
|
|
<div class="flex gap-2">
|
|
<x-inputs.input class="w-full" id="application.name" label="Name" required />
|
|
<x-inputs.input class="w-full" id="application.fqdn" label="Domains" />
|
|
</div>
|
|
<x-inputs.select id="application.build_pack" label="Build Pack" required>
|
|
<option value="nixpacks">Nixpacks</option>
|
|
<option disabled value="docker">Docker</option>
|
|
<option disabled value="compose">Compose</option>
|
|
</x-inputs.select>
|
|
@if ($application->settings->is_static)
|
|
<x-inputs.select id="application.static_image" label="Static Image" required>
|
|
<option value="nginx:alpine">nginx:alpine</option>
|
|
<option disabled value="apache:alpine">apache:alpine</option>
|
|
</x-inputs.select>
|
|
@endif
|
|
<div class="flex gap-2">
|
|
<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" />
|
|
</div>
|
|
<div class="flex gap-2">
|
|
<x-inputs.input id="application.base_directory" label="Base Directory" />
|
|
@if ($application->settings->is_static)
|
|
<x-inputs.input id="application.publish_directory" label="Publish Directory" required />
|
|
@else
|
|
<x-inputs.input id="application.publish_directory" label="Publish Directory" />
|
|
@endif
|
|
</div>
|
|
<div class="flex gap-2">
|
|
@if ($application->settings->is_static)
|
|
<x-inputs.input id="application.ports_exposes" label="Ports Exposes" readonly />
|
|
@else
|
|
<x-inputs.input id="application.ports_exposes" label="Ports Exposes" required />
|
|
@endif
|
|
<x-inputs.input id="application.ports_mappings" label="Ports Mappings" />
|
|
</div>
|
|
</div>
|
|
<div class="flex flex-col">
|
|
<x-inputs.checkbox instantSave id="is_debug" label="Debug" />
|
|
<x-inputs.checkbox instantSave id="is_static" label="Static website?" />
|
|
<x-inputs.checkbox instantSave id="is_git_submodules_allowed" label="Git Submodules Allowed?" />
|
|
<x-inputs.checkbox instantSave id="is_git_lfs_allowed" label="Git LFS Allowed?" />
|
|
<x-inputs.checkbox instantSave id="is_auto_deploy" label="Auto Deploy?" />
|
|
<x-inputs.checkbox instantSave id="is_previews" label="Previews?" />
|
|
<x-inputs.checkbox disabled instantSave id="is_dual_cert" label="Dual Certs?" />
|
|
<x-inputs.checkbox disabled instantSave id="is_custom_ssl" label="Is Custom SSL?" />
|
|
<x-inputs.checkbox disabled instantSave id="is_http2" label="Is Http2?" />
|
|
</div>
|
|
</form>
|
|
</div>
|