{% comment %}Auth groups fragment for HTMX replacement{% endcomment %}
{% if user.groups.all %} {% for perm_group in user.groups.all %} {% if request.user.is_superuser or is_cid_user_manager %} {% else %} {{ perm_group.name }} {% endif %} {% endfor %} {% else %} No permission groups {% endif %} {% if request.user.is_superuser or is_cid_user_manager %} {% endif %}