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

17 lines
741 B
PHP
Raw Normal View History

2023-07-13 11:16:24 +00:00
<dialog id="newVariable" class="modal">
2023-12-07 18:06:32 +00:00
<form method="dialog" class="flex flex-col gap-2 rounded modal-box" wire:submit='submit'>
2023-07-13 11:16:24 +00:00
<h3 class="text-lg font-bold">Add Environment Variable</h3>
2023-08-11 18:19:42 +00:00
<x-forms.input placeholder="NODE_ENV" id="key" label="Name" required />
<x-forms.input placeholder="production" id="value" label="Value" required />
2023-08-07 20:14:21 +00:00
@if (data_get($parameters, 'application_uuid'))
2023-08-11 18:19:42 +00:00
<x-forms.checkbox id="is_build_time" label="Build Variable?" />
2023-08-07 20:14:21 +00:00
@endif
2023-07-13 11:16:24 +00:00
<x-forms.button onclick="newVariable.close()" type="submit">
Save
</x-forms.button>
</form>
<form method="dialog" class="modal-backdrop">
<button>close</button>
</form>
</dialog>