2023-09-22 19:31:47 +00: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 13:48:43 +00:00
|
|
|
<x-forms.button isError wire:click='delete'>Delete</x-forms.button>
|
2023-09-22 19:31:47 +00:00
|
|
|
<a target="_blank" href="{{ $application->documentation() }}">Documentation <x-external-link /></a>
|
|
|
|
</div>
|
2023-09-25 13:48:43 +00: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>
|
|
|
|
<x-forms.input placeholder="https://app.coolify.io" label="Domains" id="application.fqdn"></x-forms.input>
|
|
|
|
</div>
|
|
|
|
<h3 class="pt-2">Advanced</h3>
|
|
|
|
<div class="w-64">
|
|
|
|
<x-forms.checkbox instantSave label="Ignore from service status"
|
|
|
|
helper="If you do not need to monitor this resource, enable. Useful if this service is optional."
|
|
|
|
id="application.ignore_from_status"></x-forms.checkbox>
|
2023-09-22 19:31:47 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
2023-09-25 10:49:55 +00:00
|
|
|
@if ($fileStorages->count() > 0)
|
|
|
|
<h3 class="py-4">Files</h3>
|
2023-09-22 19:31:47 +00:00
|
|
|
<div class="flex flex-col gap-4">
|
2023-09-25 10:49:55 +00:00
|
|
|
@foreach ($fileStorages->get() as $fileStorage)
|
2023-09-22 19:31:47 +00:00
|
|
|
<livewire:project.service.file-storage :fileStorage="$fileStorage" wire:key="{{ $loop->index }}" />
|
|
|
|
@endforeach
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
</div>
|