Add join button to invite page, fixes #114

This commit is contained in:
Tobias 2018-12-08 19:41:21 +13:00
parent 5ff4b765ca
commit 11e24f21bb

View file

@ -5,7 +5,7 @@
{% block head_title %}{{ team.name }}{% endblock %}
{% block body_outer %}
<div class="pull-right">
<div class="float-right">
{% if can_join %}
<form class="form-horizontal" method="post" action="{% url "team_join" team.slug %}">
{% csrf_token %}
@ -35,7 +35,15 @@
{% if team.description %}<p>{{ team.description }}</p>{% endif %}
{% if state == "invited" %}<p>You have been invited to join this team. Click <b>join</b> to the right to accept.</p>{% endif %}
{% if state == "invited" %}
<p>
You have been invited to join this team.
<form class="form-horizontal" method="post" action="{% url "team_join" team.slug %}">
{% csrf_token %}
<input type="submit" class="btn btn-primary" value="Accept">
</form>
</p>
{% endif %}
{% if user.is_staff or state == "manager" %}
{% if team.managers %}