2023-06-22 07:33:26 +00:00
|
|
|
<div>
|
2024-01-23 16:13:23 +00:00
|
|
|
<h1>Project: {{ data_get($project, 'name') }}</h1>
|
|
|
|
<div class="pb-10">Edit project details here.</div>
|
|
|
|
<form wire:submit='submit' class="flex flex-col gap-2 pb-10">
|
2023-06-22 13:08:02 +00:00
|
|
|
<div class="flex items-end gap-2">
|
2024-01-23 16:13:23 +00:00
|
|
|
<h2>General</h2>
|
2023-06-22 13:08:02 +00:00
|
|
|
<x-forms.button type="submit">Save</x-forms.button>
|
2024-01-31 13:18:59 +00:00
|
|
|
<livewire:project.delete-project :disabled="$project->resource_count() > 0" :project_id="$project->id" />
|
2023-06-22 13:08:02 +00:00
|
|
|
</div>
|
|
|
|
<div class="flex gap-2">
|
2023-08-11 18:19:42 +00:00
|
|
|
<x-forms.input label="Name" id="project.name" />
|
|
|
|
<x-forms.input label="Description" id="project.description" />
|
2023-06-22 13:08:02 +00:00
|
|
|
</div>
|
2023-06-22 07:33:26 +00:00
|
|
|
</form>
|
2024-01-23 16:13:23 +00:00
|
|
|
<div class="flex gap-2">
|
|
|
|
<h2>Shared Variables</h2>
|
2024-01-23 18:01:17 +00:00
|
|
|
<x-slide-over>
|
|
|
|
<x-slot:title>New Shared Variable</x-slot:title>
|
|
|
|
<x-slot:content>
|
|
|
|
<livewire:project.shared.environment-variable.add />
|
|
|
|
</x-slot:content>
|
|
|
|
<button @click="slideOverOpen=true"
|
2024-03-19 14:37:16 +00:00
|
|
|
class="button">+
|
2024-01-23 18:01:17 +00:00
|
|
|
Add</button>
|
|
|
|
</x-slide-over>
|
2024-01-23 16:13:23 +00:00
|
|
|
</div>
|
2024-01-31 13:18:59 +00:00
|
|
|
<div class="flex items-center gap-2 pb-4">You can use these variables anywhere with <span
|
|
|
|
class="text-warning">@{{ project.VARIABLENAME }}</span><x-helper
|
2024-01-23 19:26:45 +00:00
|
|
|
helper="More info <a class='text-white underline' href='https://coolify.io/docs/environment-variables#shared-variables' target='_blank'>here</a>."></x-helper>
|
|
|
|
</div>
|
2024-01-23 16:13:23 +00:00
|
|
|
<div class="flex flex-col gap-2">
|
|
|
|
@forelse ($project->environment_variables->sort()->sortBy('real_value') as $env)
|
|
|
|
<livewire:project.shared.environment-variable.show wire:key="environment-{{ $env->id }}"
|
|
|
|
:env="$env" type="project" />
|
|
|
|
@empty
|
2024-03-21 11:44:32 +00:00
|
|
|
<div>No environment variables found.</div>
|
2024-01-23 16:13:23 +00:00
|
|
|
@endforelse
|
|
|
|
</div>
|
2023-06-22 07:33:26 +00:00
|
|
|
</div>
|