ndary');
        } else {
            form.style.display = 'none';
            button.innerHTML = '<i class="fas fa-plus me-2"></i>Create Group';
            button.classList.replace('btn-secondary', 'btn-primary');
        }
    }
</script>
{% endblock %}