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

19 lines
1.2 KiB
PHP
Raw Normal View History

2024-03-25 10:33:38 +00:00
<form class="flex flex-col w-full gap-2 rounded" wire:submit='submit'>
<x-forms.input autofocus placeholder="NODE_ENV" id="key" label="Name" required />
2024-03-15 21:02:37 +00:00
<x-forms.textarea x-show="$wire.is_multiline === true" x-cloak id="value" label="Value" required />
2024-03-22 10:34:15 +00:00
<x-forms.input x-show="$wire.is_multiline === false" x-cloak placeholder="production" id="value"
x-bind:label="$wire.is_multiline === false && 'Value'" required />
2024-01-23 18:01:17 +00:00
@if (data_get($parameters, 'application_uuid'))
<x-forms.checkbox id="is_build_time" label="Build Variable?" />
2024-03-22 10:34:15 +00:00
@endif
<x-forms.checkbox id="is_multiline" label="Is Multiline?" />
2024-04-15 10:46:22 +00:00
@if (!$shared)
<x-forms.checkbox id="is_literal"
helper="This means that when you use $VARIABLES, 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 form another value. In this case, you should set this to true."
label="Is Literal?" />
@endif
2024-01-23 18:01:17 +00:00
<x-forms.button type="submit" @click="slideOverOpen=false">
Save
</x-forms.button>
</form>