Use assign/unassign on button.
This commit is contained in:
parent
ca33f8c5eb
commit
8076f0c380
|
@ -66,12 +66,12 @@
|
||||||
{% if user in shift.users %}
|
{% if user in shift.users %}
|
||||||
<a class="btn btn-danger"
|
<a class="btn btn-danger"
|
||||||
href="{% url 'teams:shift_member_drop' camp_slug=camp.slug team_slug=team.slug pk=shift.pk %}">
|
href="{% url 'teams:shift_member_drop' camp_slug=camp.slug team_slug=team.slug pk=shift.pk %}">
|
||||||
<i class="fas fa-thumbs-down"></i> Drop it!
|
<i class="fas fa-thumbs-down"></i> Unassign me
|
||||||
</a>
|
</a>
|
||||||
{% elif shift.people_required > shift.team_members.count %}
|
{% elif shift.people_required > shift.team_members.count %}
|
||||||
<a class="btn btn-success"
|
<a class="btn btn-success"
|
||||||
href="{% url 'teams:shift_member_take' camp_slug=camp.slug team_slug=team.slug pk=shift.pk %}">
|
href="{% url 'teams:shift_member_take' camp_slug=camp.slug team_slug=team.slug pk=shift.pk %}">
|
||||||
<i class="fas fa-thumbs-up"></i> Take it!
|
<i class="fas fa-thumbs-up"></i> Assign me
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in a new issue