coolify/resources/views/livewire/project/edit.blade.php

38 lines
1.7 KiB
PHP
Raw Normal View History

2023-06-22 09:33:26 +02:00
<div>
2024-03-21 14:30:35 +01:00
<form wire:submit='submit' class="flex flex-col pb-10">
<div class="flex gap-2">
<h1>Project: {{ data_get($project, 'name') }}</h1>
<div class="flex items-end gap-2">
<x-forms.button type="submit">Save</x-forms.button>
<livewire:project.delete-project :disabled="$project->resource_count() > 0" :project_id="$project->id" />
</div>
2023-06-22 15:08:02 +02:00
</div>
2024-03-21 14:30:35 +01:00
<div class="pt-2 pb-10">Edit project details here.</div>
2023-06-22 15:08:02 +02:00
<div class="flex gap-2">
2023-08-11 20:19:42 +02:00
<x-forms.input label="Name" id="project.name" />
<x-forms.input label="Description" id="project.description" />
2023-06-22 15:08:02 +02:00
</div>
2023-06-22 09:33:26 +02:00
</form>
2024-01-23 17:13:23 +01:00
<div class="flex gap-2">
<h2>Shared Variables</h2>
2024-03-25 11:33:38 +01:00
<x-modal-input buttonTitle="+ Add" title="New Shared Variable">
<livewire:project.shared.environment-variable.add />
</x-modal-input>
2024-01-23 17:13:23 +01:00
</div>
2024-03-25 11:33:38 +01:00
<div class="pb-4 lg:flex lg:gap-1">
<div>You can use these variables anywhere with</div>
<div class=" dark:text-warning text-coollabs">@{{ project.VARIABLENAME }} </div>
<x-helper
helper="More info <a class='underline dark:text-white' href='https://coolify.io/docs/environment-variables#shared-variables' target='_blank'>here</a>."></x-helper>
</div>
2024-01-23 17:13:23 +01: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 12:44:32 +01:00
<div>No environment variables found.</div>
2024-01-23 17:13:23 +01:00
@endforelse
</div>
2023-06-22 09:33:26 +02:00
</div>