coolify/resources/views/livewire/team-shared-variables-index.blade.php

23 lines
1.0 KiB
PHP
Raw Normal View History

2024-01-23 17:13:23 +01:00
<div>
<x-team.navbar />
<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-19 15:37:16 +01:00
<div class="flex items-center gap-2 pb-4">You can use these variables anywhere with <span
2024-03-25 19:07:59 +01:00
class="dark:text-warning text-coollabs">@{{ team.VARIABLENAME }}</span> <x-helper
2024-03-27 11:07:29 +01:00
helper="More info <a class='underline dark:text-white' href='https://coolify.io/docs/knowledge-base/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 ($team->environment_variables->sort()->sortBy('real_value') as $env)
<livewire:project.shared.environment-variable.show wire:key="environment-{{ $env->id }}"
:env="$env" type="team" />
@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>
</div>