Files @ 58121ebfe6fb
Branch filter:

Location: symposion_app/symposion_project/templates/teams/team_detail.html

James Tauber
show team state and optional description on team detail page
{% extends "site_base.html" %}

{% block head_title %}{{ team.name }}{% endblock %}

{% block body %}
    <h1>{{ team.name }}{% if state %} <span class="label">{{ state }}</span>{% endif %}</h1>
    
    {% if team.description %}<p>{{ team.description }}</p>{% endif %}
    
    {% 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 %}
    
    {% 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 %}
    
{% endblock %}