{% extends 'modal_base.html' %} {% block icon %}{% endblock %} {% block modal_body %}
{% for team in teams %}{% if not team.parent %}{% if team.direct_add %} {% if team.has_subteams %}

{{team.title}}:

{% for subteam in team.team_set.all %}{% if subteam.active %}{% if subteam.direct_add %} {% endif %}{% endif %}{% endfor %} {% else %}

{{team.title}}:

{% endif %} {% endif %}{% endif %}{% endfor %}
{% endblock %} {% block modal_another %}{% endblock %}