wip
This commit is contained in:
@@ -1,16 +1,19 @@
|
||||
<div x-init="$wire.check_status">
|
||||
<livewire:project.service.modal />
|
||||
<h1>Configuration</h1>
|
||||
<x-resources.breadcrumbs :resource="$service" :parameters="$parameters" />
|
||||
<x-services.navbar :service="$service" :parameters="$parameters" />
|
||||
<h3>Applications</h3>
|
||||
@foreach ($service->applications as $application)
|
||||
<form wire:submit.prevent='submit'>
|
||||
<p>{{ $application->name }}</p>
|
||||
<p>{{ $application->status }}</p>
|
||||
<x-forms.input id="services.{{$application->name}}.fqdn"></x-forms.input>
|
||||
<x-forms.button type="submit">Save</x-forms.button>
|
||||
</form>
|
||||
<form class="box" wire:submit.prevent='submit'>
|
||||
<p>{{ $application->name }}</p>
|
||||
<x-forms.input id="services.{{ $application->name }}.fqdn"></x-forms.input>
|
||||
<x-forms.button type="submit">Save</x-forms.button>
|
||||
</form>
|
||||
@endforeach
|
||||
<h3>Databases</h3>
|
||||
@if ($service->databases->count() > 0)
|
||||
<h3>Databases</h3>
|
||||
@endif
|
||||
@foreach ($service->databases as $database)
|
||||
<p>{{ $database->name }}</p>
|
||||
<p>{{ $database->status }}</p>
|
||||
@@ -19,8 +22,4 @@
|
||||
@foreach ($service->environment_variables as $variable)
|
||||
<p>{{ $variable->key }}={{ $variable->value }}</p>
|
||||
@endforeach
|
||||
<x-forms.button wire:click='deploy'>Deploy</x-forms.button>
|
||||
<div class="container w-full py-10 mx-auto">
|
||||
<livewire:activity-monitor header="Service Startup Logs" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
12
resources/views/livewire/project/service/modal.blade.php
Normal file
12
resources/views/livewire/project/service/modal.blade.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<div>
|
||||
<x-modal submitWireAction="serviceStatusUpdated" modalId="startService">
|
||||
<x-slot:modalBody>
|
||||
<livewire:activity-monitor header="Service Startup Logs" />
|
||||
</x-slot:modalBody>
|
||||
<x-slot:modalSubmit>
|
||||
<x-forms.button onclick="startService.close()" type="submit">
|
||||
Close
|
||||
</x-forms.button>
|
||||
</x-slot:modalSubmit>
|
||||
</x-modal>
|
||||
</div>
|
||||
Reference in New Issue
Block a user