Skip to content

Commit a4d0f1d

Browse files
committed
Add hint to "build variable" check in the enviroment variable tab. remember the user what should be doing in order to make it work. coollabsio#3477
1 parent e42c7e2 commit a4d0f1d

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

resources/views/livewire/project/shared/environment-variable/add.blade.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
<x-forms.input x-show="$wire.is_multiline === false" x-cloak placeholder="production" id="value"
55
x-bind:label="$wire.is_multiline === false && 'Value'" required />
66
@if (data_get($parameters, 'application_uuid'))
7-
<x-forms.checkbox id="is_build_time" label="Build Variable?" />
7+
<x-forms.checkbox id="is_build_time"
8+
helper="If you are using Docker, remember to modify the file to be ready to receive the build time args. Ex.: for docker file, add `ARG name_of_the_variable`, or dockercompose add `- 'name_of_the_variable=${name_of_the_variable}'`"
9+
label="Build Variable?" />
810
@endif
911
<x-forms.checkbox id="is_multiline" label="Is Multiline?" />
1012
@if (!$shared)

resources/views/livewire/project/shared/environment-variable/show.blade.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,24 @@ class="font-bold dark:text-warning text-coollabs">{{ $env->key }}</span>.
4141
@endif
4242
<div class="flex flex-col w-full gap-2 lg:flex-row">
4343
@if ($type === 'service')
44-
<x-forms.checkbox instantSave id="env.is_build_time" label="Build Variable?" />
44+
<x-forms.checkbox instantSave id="env.is_build_time"
45+
helper="If you are using Docker, remember to modify the file to be ready to receive the build time args. Ex.: for docker file, add `ARG name_of_the_variable`, or dockercompose add `- 'name_of_the_variable=${name_of_the_variable}'`"
46+
label="Build Variable?" />
4547
@else
4648
@if ($env->is_shared)
47-
<x-forms.checkbox instantSave id="env.is_build_time" label="Build Variable?" />
49+
<x-forms.checkbox instantSave id="env.is_build_time"
50+
helper="If you are using Docker, remember to modify the file to be ready to receive the build time args. Ex.: for docker file, add `ARG name_of_the_variable`, or dockercompose add `- 'name_of_the_variable=${name_of_the_variable}'`"
51+
label="Build Variable?" />
4852
<x-forms.checkbox instantSave id="env.is_literal"
4953
helper="This means that when you use $VARIABLES in a value, it should be interpreted as the actual characters '$VARIABLES' and not as the value of a variable named VARIABLE.<br><br>Useful if you have $ sign in your value and there are some characters after it, but you would not like to interpolate it from another value. In this case, you should set this to true."
5054
label="Is Literal?" />
5155
@else
5256
@if ($isSharedVariable)
5357
<x-forms.checkbox instantSave id="env.is_multiline" label="Is Multiline?" />
5458
@else
55-
<x-forms.checkbox instantSave id="env.is_build_time" label="Build Variable?" />
59+
<x-forms.checkbox instantSave id="env.is_build_time"
60+
helper="If you are using Docker, remember to modify the file to be ready to receive the build time args. Ex.: for dockerfile, add `ARG name_of_the_variable`, or dockercompose add `- 'name_of_the_variable=${name_of_the_variable}'`"
61+
label="Build Variable?" />
5662
<x-forms.checkbox instantSave id="env.is_multiline" label="Is Multiline?" />
5763
@if (!data_get($env, 'is_multiline'))
5864
<x-forms.checkbox instantSave id="env.is_literal"

0 commit comments

Comments
 (0)