dlers
    document.getElementById('addCableForm').addEventListener('submit', function(e) {
        e.preventDefault();
        const formData = new FormData(this);
        
        // Use the web endpoint that supports bulk creation
        fetch('/cables', {
            method: 'POST',
            body: formData
        })
        .then(response => {
            if (response.ok || response.redirected) {
                const amount = formData.get('amount') || 1;
                alert(`${amount} cable(s) cr