coolify/resources/views/livewire/project/service/application.blade.php

40 lines
2.6 KiB
PHP
Raw Normal View History

2023-09-22 21:31:47 +02:00
<div>
<form wire:submit.prevent='submit'>
<div class="flex items-center gap-2 pb-4">
@if ($application->human_name)
<h2>{{ Str::headline($application->human_name) }}</h2>
@else
<h2>{{ Str::headline($application->name) }}</h2>
@endif
<x-forms.button type="submit">Save</x-forms.button>
2023-09-25 15:48:43 +02:00
<x-forms.button isError wire:click='delete'>Delete</x-forms.button>
2023-09-22 21:31:47 +02:00
</div>
2023-09-25 15:48:43 +02:00
<div class="flex flex-col gap-2">
<div class="flex gap-2">
<x-forms.input label="Name" id="application.human_name"
placeholder="Human readable name"></x-forms.input>
<x-forms.input label="Description" id="application.description"></x-forms.input>
</div>
2023-09-25 17:51:04 +02:00
<div class="flex gap-2">
2023-09-26 14:45:52 +02:00
@if ($application->required_fqdn)
<x-forms.input required placeholder="https://app.coolify.io" label="Domains"
2023-10-17 15:34:20 +02:00
id="application.fqdn" helper="You can specify one domain with path or more with comma. You can specify a port to bind the domain to.<br><br><span class='text-helper'>Example</span><br>- http://app.coolify.io, https://cloud.coolify.io/dashboard<br>- http://app.coolify.io/api/v3<br>- http://app.coolify.io:3000 -> app.coolify.io will point to port 3000 inside the container. "></x-forms.input>
2023-09-26 14:45:52 +02:00
@else
<x-forms.input placeholder="https://app.coolify.io" label="Domains"
2023-10-17 15:34:20 +02:00
id="application.fqdn" helper="You can specify one domain with path or more with comma. You can specify a port to bind the domain to.<br><br><span class='text-helper'>Example</span><br>- http://app.coolify.io, https://cloud.coolify.io/dashboard<br>- http://app.coolify.io/api/v3<br>- http://app.coolify.io:3000 -> app.coolify.io will point to port 3000 inside the container. "></x-forms.input>
2023-09-26 14:45:52 +02:00
@endif
<x-forms.input required
helper="You can change the image you would like to deploy.<br><br><span class='text-warning'>WARNING. You could corrupt your data. Only do it if you know what you are doing.</span>"
label="Image" id="application.image"></x-forms.input>
2023-09-25 17:51:04 +02:00
</div>
2023-09-25 15:48:43 +02:00
</div>
2023-09-26 14:45:52 +02:00
2023-09-25 15:48:43 +02:00
<h3 class="pt-2">Advanced</h3>
<div class="w-64">
2023-09-26 14:45:52 +02:00
<x-forms.checkbox instantSave label="Exclude from service status"
2023-09-25 15:48:43 +02:00
helper="If you do not need to monitor this resource, enable. Useful if this service is optional."
2023-09-26 14:45:52 +02:00
id="application.exclude_from_status"></x-forms.checkbox>
2023-09-22 21:31:47 +02:00
</div>
</form>
</div>