{% extends "site_base.html" %} {% load bootstrap_tags %} {% block head_title %}{{ team.name }}{% endblock %} {% block body_outer %}
{% if can_join %}
{% csrf_token %}
{% endif %} {% if can_leave %}
{% csrf_token %}
{% endif %} {% if can_apply %}
{% csrf_token %}
{% endif %}

{{ team.name }}{% if state %} {{ state }}{% endif %}

{% if team.description %}

{{ team.description }}

{% endif %} {% if state == "invited" %}

You have been invited to join this team. Click join to the right to accept.

{% endif %} {% if user.is_staff or state == "manager" %} {% if team.managers %}

Managers

{% for membership in team.managers %} {% endfor %}
{{ membership.user.email }}{% if user == membership.user %} you{% endif %}
{% csrf_token %}
{% endif %} {% if team.members %}

Team Members

{% for membership in team.members %} {% endfor %}
{{ membership.user.email }}{% if user == membership.user %} you{% endif %}
{% csrf_token %}
{% endif %} {% if team.applicants and team.access == "application" %}

Applicants

{% for membership in team.applicants %} {% endfor %}
{{ membership.user.email }}
{% csrf_token %}
{% csrf_token %}
{% endif %} {% if team.invitees %}

Invitees

{% for membership in team.invitees %} {% endfor %}
{{ membership.user.email }}
{% endif %} {% if invite_form %}
{% csrf_token %} Invite User to Team {{ invite_form|as_bootstrap }}
{% endif %} {% endif %}
{% endblock %}