Use assign/unassign on button.

This commit is contained in:
Víðir Valberg Guðmundsson 2018-08-08 14:37:41 +02:00
parent ca33f8c5eb
commit 8076f0c380

View file

@ -66,12 +66,12 @@
{% if user in shift.users %}
<a class="btn btn-danger"
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>
{% elif shift.people_required > shift.team_members.count %}
<a class="btn btn-success"
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>
{% endif %}
{% endfor %}