
            var deleteUrl = "{% url 'settings:delete_backup' '10000000000000' %}".replace('10000000000000', selectedBackupPk);
            window.location.href = deleteUrl;
        } else {
            alert("Please select a backup first.");
        }
    });
</script>
<script>
    // Handle the Apply button's link dynamically
    document.getElementById('applyBackupButton').addEventListener('click', function() {
        var selectedBackupPk = document.getElementById('selected_backup').value;
        if (s