     if (checked) {
                    deleteLink.href = baseUrl + '&delete_ptr=1';
                } else {
                    deleteLink.href = baseUrl + '&delete_ptr=0';
                }
            }
        </script>
        {% endif %}

        {% if record_info['type'] == 'PTR' %}
        <script>
            function updateDeleteLinkForward(checked) {
                const deleteLink = document.getElementById('delete_link');
                const baseUrl = '/zones/{{ zone_id }}/records/{{ record_