2012-08-02 01:38:50 +00:00
|
|
|
{% extends "site_base.html" %}
|
|
|
|
|
|
|
|
{% block head_title %}{{ team.name }}{% endblock %}
|
|
|
|
|
|
|
|
{% block body %}
|
|
|
|
<h1>{{ team.name }}</h1>
|
|
|
|
|
2012-08-02 02:49:27 +00:00
|
|
|
{% if can_join %}
|
|
|
|
<form method="post" action="{% url team_join team.slug %}">
|
|
|
|
{% csrf_token %}
|
|
|
|
<input type="submit" class="btn btn-primary" value="join">
|
|
|
|
</form>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if can_leave %}
|
|
|
|
<form method="post" action="{% url team_leave team.slug %}">
|
|
|
|
{% csrf_token %}
|
|
|
|
<input type="submit" class="btn" value="leave">
|
|
|
|
</form>
|
|
|
|
{% endif %}
|
|
|
|
|
2012-08-02 02:59:41 +00:00
|
|
|
{% if can_apply %}
|
|
|
|
<form method="post" action="{% url team_apply team.slug %}">
|
|
|
|
{% csrf_token %}
|
|
|
|
<input type="submit" class="btn btn-primary" value="apply">
|
|
|
|
</form>
|
|
|
|
{% endif %}
|
|
|
|
|
2012-08-02 01:38:50 +00:00
|
|
|
{% endblock %}
|