-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathteam_user_shifts.html
More file actions
52 lines (46 loc) · 1.36 KB
/
team_user_shifts.html
File metadata and controls
52 lines (46 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{% extends 'base.html' %}
{% block title %}
Your shifts | {{ block.super }}
{% endblock %}
{% block content %}
<h3>Your shifts</h3>
<table class="table table-condensed">
<tbody>
{% for shift in user_shifts %}
{% ifchanged shift.shift_range.lower|date:'d' %}
<tr>
<td colspan=4>
<h4>
{{ shift.shift_range.lower|date:'Y-m-d l' }}
</h4>
<tr>
<th>Team</th>
<th>Start</th>
<th>End</th>
<th>Actions</th>
{% endifchanged %}
<tr>
<td>
{{ shift.team.name }}
</td>
<td>
{{ shift.shift_range.lower|date:'H:i' }}
</td>
<td>
{{ shift.shift_range.upper|date:'H:i' }}
</td>
<td>
<a class="btn btn-warning"
href="{% url 'teams:shift_member_sell' camp_slug=camp.slug team_slug=shift.team.slug pk=shift.pk %}">
<i class="fas fa-thumbs-down"></i> Sell shift
<td>
<a class="btn btn-danger"
href="{% url 'teams:shift_member_drop' camp_slug=camp.slug team_slug=shift.team.slug pk=shift.pk %}">
<i class="fas fa-thumbs-down"></i> Unassign me
</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}