2025-10-11 11:47:26 +00:00
|
|
|
<form wire:submit='save' class="flex flex-col gap-4 w-full">
|
2025-10-11 10:42:09 +00:00
|
|
|
<x-forms.input id="name" label="Script Name" helper="A descriptive name for this cloud-init script." required />
|
|
|
|
|
|
|
|
|
|
<x-forms.textarea id="script" label="Script Content" rows="12"
|
2025-10-11 11:56:55 +00:00
|
|
|
helper="Enter your cloud-init script. Supports cloud-config YAML format." required />
|
2025-10-11 10:42:09 +00:00
|
|
|
|
|
|
|
|
<div class="flex justify-end gap-2">
|
|
|
|
|
@if ($modal_mode)
|
|
|
|
|
<x-forms.button type="button" @click="$dispatch('closeModal')">
|
|
|
|
|
Cancel
|
|
|
|
|
</x-forms.button>
|
|
|
|
|
@endif
|
|
|
|
|
<x-forms.button type="submit" isHighlighted>
|
|
|
|
|
{{ $scriptId ? 'Update Script' : 'Create Script' }}
|
|
|
|
|
</x-forms.button>
|
|
|
|
|
</div>
|
2025-10-11 11:47:26 +00:00
|
|
|
</form>
|