wip
This commit is contained in:
7
resources/views/components/applications/layout.blade.php
Normal file
7
resources/views/components/applications/layout.blade.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<x-layout>
|
||||
<h1>{{ $title ?? 'NOT SET' }}</h1>
|
||||
<x-applications.navbar :applicationId="$applicationId" />
|
||||
<div>
|
||||
{{ $slot }}
|
||||
</div>
|
||||
</x-layout>
|
||||
5
resources/views/components/applications/navbar.blade.php
Normal file
5
resources/views/components/applications/navbar.blade.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<nav class="flex gap-4 py-2 bg-gray-100">
|
||||
<a href="{{ route('project.applications.configuration', Route::current()->parameters()) }}">Configuration</a>
|
||||
<a href="{{ route('project.applications.deployments', Route::current()->parameters()) }}">Deployments</a>
|
||||
<livewire:deploy-application :applicationId="$applicationId" />
|
||||
</nav>
|
||||
@@ -1,6 +1,16 @@
|
||||
<label for={{ $name }}>{{ $name }}</label>
|
||||
<input id={{ $name }} wire:model={{ $name }} type="text" name={{ $name }}
|
||||
{{ $required }} />
|
||||
<label for={{ $name }}>
|
||||
@if ($label)
|
||||
{{ $label }}
|
||||
@else
|
||||
{{ $name }}
|
||||
@endif
|
||||
@if ($required)
|
||||
*
|
||||
@endif
|
||||
</label>
|
||||
<input id={{ $name }} wire:model.defer={{ $name }} type="text" name={{ $name }}
|
||||
@if ($required) required @endif
|
||||
@if ($readonly) readOnly=true disabled=true @endif />
|
||||
@error($name)
|
||||
<span class="text-red-500">{{ $message }}</span>
|
||||
@enderror
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
<title>{{ $title ?? 'Coolify' }}</title>
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
@vite(['resources/js/app.js', 'resources/css/app.css'])
|
||||
<script defer src="https://unpkg.com/alpinejs@3.x.x/dist/cdn.min.js"></script>
|
||||
<style>[x-cloak] { display: none !important; }</style>
|
||||
@livewireStyles
|
||||
</head>
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<nav>
|
||||
<nav class="flex gap-2 ">
|
||||
<div>v{{ config('coolify.version') }}</div>
|
||||
@guest
|
||||
<a href="/login">Login</a>
|
||||
@@ -14,6 +14,6 @@
|
||||
@csrf
|
||||
<button type="submit">Logout</button>
|
||||
</form>
|
||||
<livewire:check-update>
|
||||
{{-- <livewire:check-update> --}}
|
||||
@endauth
|
||||
</nav>
|
||||
|
||||
Reference in New Issue
Block a user