refactor: enable cloud-init save checkbox at all times with backend validation

Remove the disabled state from the save checkbox to allow users to check it
at any time. The backend already validates that cloud_init_script is not
empty before saving (line 499 in ByHetzner.php), so empty/null scripts
will simply not be saved even if the checkbox is checked.

This improves UX by making the checkbox always interactive while maintaining
data integrity through backend validation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Andras Bacsai 2025-10-11 10:59:26 +02:00
parent 05bd57ed51
commit e4bf8ab337

View file

@ -175,8 +175,7 @@ class="p-4 border border-yellow-500 dark:border-yellow-600 rounded bg-yellow-50
<div class="flex flex-col gap-2">
<x-forms.checkbox id="save_cloud_init_script" label="Save this script for later use"
helper="Save this cloud-init script to your team's library for reuse"
:disabled="empty($cloud_init_script)" />
helper="Save this cloud-init script to your team's library for reuse" />
@if ($save_cloud_init_script)
<div class="flex flex-col gap-2 ml-6">