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

19 lines
801 B
PHP
Raw Normal View History

2023-05-04 20:29:14 +00:00
<div x-data="{ deleteEnvironment: false }">
2023-05-17 10:14:18 +00:00
<form wire:submit.prevent='submit' class="flex flex-col px-2 max-w-fit">
<div class="flex gap-2">
<x-inputs.input label="Name" id="env.key" />
<x-inputs.input label="Value" id="env.value" />
2023-05-18 11:26:35 +00:00
<x-inputs.checkbox disabled class="flex-col items-center" id="env.is_build_time" label="Build Variable?" />
2023-05-17 10:14:18 +00:00
</div>
<div class="pt-2">
2023-05-18 11:26:35 +00:00
<x-inputs.button type="submit">
2023-05-17 10:14:18 +00:00
Update
</x-inputs.button>
2023-05-18 11:26:35 +00:00
<x-inputs.button x-on:click.prevent="deleteEnvironment = true">
2023-05-17 10:14:18 +00:00
Delete
</x-inputs.button>
2023-05-04 20:29:14 +00:00
</div>
</form>
<x-naked-modal show="deleteEnvironment" message="Are you sure you want to delete {{ $env->key }}?" />
</div>