Add join button to invite page, fixes #114
This commit is contained in:
parent
5ff4b765ca
commit
11e24f21bb
1 changed files with 10 additions and 2 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue