2023-07-13 11:16:24 +00:00
< div >
2024-03-25 18:07:59 +00:00
< form wire : submit = 'submit'
2024-03-26 12:35:55 +00:00
class = " flex flex-col items-center gap-4 p-4 bg-white border lg:items-start dark:bg-base dark:border-coolgray-300 " >
2024-06-22 10:55:26 +00:00
{{ -- @ if ( ! $env -> isFoundInCompose && ! $isSharedVariable )
2024-04-15 12:23:25 +00:00
< div class = " flex items-center justify-center gap-2 dark:text-warning text-coollabs " > < svg
class = " hidden w-4 h-4 dark:text-warning lg:block " viewBox = " 0 0 256 256 "
xmlns = " http://www.w3.org/2000/svg " >
< path fill = " currentColor "
d = " M240.26 186.1L152.81 34.23a28.74 28.74 0 0 0-49.62 0L15.74 186.1a27.45 27.45 0 0 0 0 27.71A28.31 28.31 0 0 0 40.55 228h174.9a28.31 28.31 0 0 0 24.79-14.19a27.45 27.45 0 0 0 .02-27.71m-20.8 15.7a4.46 4.46 0 0 1-4 2.2H40.55a4.46 4.46 0 0 1-4-2.2a3.56 3.56 0 0 1 0-3.73L124 46.2a4.77 4.77 0 0 1 8 0l87.44 151.87a3.56 3.56 0 0 1 .02 3.73M116 136v-32a12 12 0 0 1 24 0v32a12 12 0 0 1-24 0m28 40a16 16 0 1 1-16-16a16 16 0 0 1 16 16 " >
</ path >
</ svg > This variable is not found in the compose file , so it won ' t be used .</ div >
2024-06-22 10:55:26 +00:00
@ endif -- }}
2023-10-24 13:41:21 +00:00
@ if ( $isLocked )
2024-03-22 10:34:15 +00:00
< div class = " flex flex-1 w-full gap-2 " >
2023-10-24 13:41:21 +00:00
< x - forms . input disabled id = " env.key " />
2024-03-22 10:34:15 +00:00
< 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 >
2024-03-20 11:54:06 +00:00
< x - modal - confirmation isErrorButton buttonTitle = " Delete " >
2024-01-31 15:14:12 +00:00
You will delete environment variable < span
2024-03-25 18:07:59 +00:00
class = " font-bold dark:text-warning text-coollabs " > {{ $env -> key }} </ span >.
2024-03-20 11:54:06 +00:00
</ x - modal - confirmation >
2024-03-22 10:34:15 +00:00
</ div >
@ else
@ if ( $isDisabled )
< div class = " flex flex-col w-full gap-2 lg:flex-row " >
< x - forms . input disabled id = " env.key " />
< x - forms . input disabled type = " password " id = " env.value " />
@ if ( $env -> is_shared )
< x - forms . input disabled type = " password " id = " env.real_value " />
@ endif
</ div >
2023-10-24 13:41:21 +00:00
@ else
2024-03-22 10:34:15 +00:00
< div class = " flex flex-col w-full gap-2 lg:flex-row " >
@ if ( $env -> is_multiline )
< x - forms . input isMultiline = " { { $env->is_multiline }} " id = " env.key " />
< x - forms . textarea type = " password " id = " env.value " />
@ else
< x - forms . input id = " env.key " />
< x - forms . input type = " password " id = " env.value " />
@ endif
@ if ( $env -> is_shared )
< x - forms . input disabled type = " password " id = " env.real_value " />
@ endif
</ div >
@ endif
< div class = " flex flex-col w-full gap-2 lg:flex-row " >
2024-03-25 18:07:59 +00:00
@ if ( $type === 'service' )
< x - forms . checkbox instantSave id = " env.is_build_time " label = " Build Variable? " />
@ else
@ if ( $env -> is_shared )
< x - forms . checkbox instantSave id = " env.is_build_time " label = " Build Variable? " />
2024-04-15 10:46:22 +00:00
< x - forms . checkbox instantSave id = " env.is_literal "
2024-07-12 18:00:20 +00:00
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. "
2024-04-15 10:46:22 +00:00
label = " Is Literal? " />
2024-03-25 18:07:59 +00:00
@ else
2024-04-15 12:23:25 +00:00
@ if ( $isSharedVariable )
2024-04-15 10:46:22 +00:00
< x - forms . checkbox instantSave id = " env.is_multiline " label = " Is Multiline? " />
@ else
< x - forms . checkbox instantSave id = " env.is_build_time " label = " Build Variable? " />
< x - forms . checkbox instantSave id = " env.is_multiline " label = " Is Multiline? " />
2024-06-09 20:37:23 +00:00
@ if ( ! data_get ( $env , 'is_multiline' ))
< x - forms . checkbox instantSave id = " env.is_literal "
2024-07-12 18:00:20 +00:00
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. "
2024-06-09 20:37:23 +00:00
label = " Is Literal? " />
@ endif
2024-04-15 10:46:22 +00:00
@ endif
2024-03-25 18:07:59 +00:00
@ endif
2024-03-22 10:34:15 +00:00
@ endif
< div class = " flex-1 " ></ div >
2023-10-24 13:41:21 +00:00
@ 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 >
2024-03-20 11:54:06 +00:00
< x - modal - confirmation isErrorButton buttonTitle = " Delete " >
2024-01-31 15:14:12 +00:00
You will delete environment variable < span
2024-03-25 09:41:44 +00:00
class = " font-bold dark:text-warning " > {{ $env -> key }} </ span >.
2024-03-20 11:54:06 +00:00
</ x - modal - confirmation >
2023-10-24 13:41:21 +00:00
@ else
< x - forms . button type = " submit " >
Update
</ x - forms . button >
< x - forms . button wire : click = 'lock' >
Lock
</ x - forms . button >
2024-03-22 10:34:15 +00:00
< x - modal - confirmation buttonFullWidth isErrorButton buttonTitle = " Delete " >
2024-01-31 15:14:12 +00:00
You will delete environment variable < span
2024-03-25 09:41:44 +00:00
class = " font-bold dark:text-warning " > {{ $env -> key }} </ span >.
2024-03-20 11:54:06 +00:00
</ x - modal - confirmation >
2023-10-24 13:41:21 +00:00
@ endif
2024-03-22 10:34:15 +00:00
</ div >
@ endif
2023-05-04 20:29:14 +00:00
</ form >
</ div >