yle.display === 'none') {
            form.style.display = 'block';
            button.innerHTML = '<i class="fas fa-times me-2"></i>Cancel';
            button.classList.replace('btn-primary', 'btn-secondary');
        } else {
            form.style.display = 'none';
            button.innerHTML = '<i class="fas fa-plus me-2"></i>Add New Tag';
            button.classList.replace('btn-secondary', 'btn-primary');
        }
    }
</script>
{% endblock %}
