2023-07-13 11:16:24 +00:00
|
|
|
<div>
|
|
|
|
<x-modal yesOrNo modalId="{{ $modalId }}" modalTitle="Delete Environment Variable">
|
|
|
|
<x-slot:modalBody>
|
|
|
|
<p>Are you sure you want to delete this environment variable <span
|
|
|
|
class="font-bold text-warning">({{ $env->key }})</span>?</p>
|
|
|
|
</x-slot:modalBody>
|
|
|
|
</x-modal>
|
2023-11-17 02:49:51 +00:00
|
|
|
<form wire:submit.prevent='submit' class="flex flex-col items-center gap-2 m-2 p-4 border lg:m-0 lg:p-0 lg:border-0 lg:flex-row">
|
2023-10-24 13:41:21 +00:00
|
|
|
@if ($isLocked)
|
|
|
|
<svg class="icon" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
|
|
<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
|
|
|
|
<path d="M5 13a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-6z" />
|
|
|
|
<path d="M11 16a1 1 0 1 0 2 0a1 1 0 0 0-2 0m-3-5V7a4 4 0 1 1 8 0v4" />
|
|
|
|
</g>
|
|
|
|
</svg>
|
2023-09-27 13:48:19 +00:00
|
|
|
<x-forms.input disabled id="env.key" />
|
|
|
|
@else
|
2023-10-24 13:41:21 +00:00
|
|
|
@if ($isDisabled)
|
|
|
|
<x-forms.input disabled id="env.key" />
|
|
|
|
<x-forms.input disabled type="password" id="env.value" />
|
|
|
|
@if ($type !== 'service')
|
|
|
|
<x-forms.checkbox instantSave id="env.is_build_time" label="Build Variable?" />
|
|
|
|
@endif
|
|
|
|
@else
|
|
|
|
<x-forms.input id="env.key" />
|
|
|
|
<x-forms.input type="password" id="env.value" />
|
|
|
|
@if ($type !== 'service')
|
|
|
|
<x-forms.checkbox instantSave id="env.is_build_time" label="Build Variable?" />
|
|
|
|
@endif
|
2023-09-27 13:48:19 +00:00
|
|
|
@endif
|
2023-09-22 09:23:49 +00:00
|
|
|
@endif
|
2023-06-15 07:15:41 +00:00
|
|
|
<div class="flex gap-2">
|
2023-10-24 13:41:21 +00:00
|
|
|
@if ($isLocked)
|
2023-09-27 13:48:19 +00:00
|
|
|
<x-forms.button isError isModal modalId="{{ $modalId }}">
|
|
|
|
Delete
|
|
|
|
</x-forms.button>
|
2023-10-24 13:41:21 +00:00
|
|
|
@else
|
|
|
|
@if ($isDisabled)
|
|
|
|
<x-forms.button disabled type="submit">
|
|
|
|
Update
|
|
|
|
</x-forms.button>
|
2023-10-26 08:02:45 +00:00
|
|
|
<x-forms.button wire:click='lock'>
|
|
|
|
Lock
|
|
|
|
</x-forms.button>
|
2023-10-24 13:41:21 +00:00
|
|
|
<x-forms.button disabled isError isModal modalId="{{ $modalId }}">
|
|
|
|
Delete
|
|
|
|
</x-forms.button>
|
|
|
|
@else
|
|
|
|
<x-forms.button type="submit">
|
|
|
|
Update
|
|
|
|
</x-forms.button>
|
|
|
|
<x-forms.button wire:click='lock'>
|
|
|
|
Lock
|
|
|
|
</x-forms.button>
|
|
|
|
<x-forms.button isError isModal modalId="{{ $modalId }}">
|
|
|
|
Delete
|
|
|
|
</x-forms.button>
|
|
|
|
@endif
|
2023-09-27 13:48:19 +00:00
|
|
|
@endif
|
2023-05-04 20:29:14 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|