eated successfully`);
                closeAddCableModal();
                window.location.reload();
            } else {
                throw new Error('Failed to create cable(s)');
            }
        })
        .catch(error => {
            console.error('Error creating cable(s):', error);
            alert('Error creating cable(s)');
        });
    });

    document.getElementById('editCableForm').addEventListener('submit', function(e) {
        e.preventDefault();
        const formData = new Form