-
Notifications
You must be signed in to change notification settings - Fork 2
/
dj_logs.html
72 lines (66 loc) · 1.57 KB
/
dj_logs.html
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{% extends "base.html" %}
{% block title %}Station Logs{% endblock %}
{% block left_column %}
<div id='psas'>
<h4>PSAs</h4>
{% if psas %}
<table class="table">
<thead>
<tr>
<td>PSA Title</td>
<td>Program</td>
<td>Date</td>
</tr>
</thead>
<tbody>
{% for p in psas %}
<tr>
<td>{{ p.desc }}</td>
<td>{{ p.program.title }}</td>
<td>{{ p.play_date|date:"F j, Y G:i" }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<center><b>No PSAs were found. Is this date in the future?</b></center>
{% endif %}
</div>
<div id='ids'>
<h4>Station IDs</h4>
{% if ids %}
<table class="table">
<thead>
<tr>
<td>Program</td>
<td>Date</td>
</tr>
</thead>
<tbody>
{% for i in ids %}
<tr>
<td>{{ i.program.title }}</td>
<td>{{ i.play_date|date:"F j, Y G:i" }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<center><b>No Station IDs were found. Is this date in the future?</b></center>
{% endif %}
</div>
{% endblock %}
{% block right_column %}
<div>
<a href='/dj/'>Return to main index</a>
</div>
<div>
<h4>{{ start|date }} through {{ end|date }}</h4>
<p>Select a different two-week period below.</p>
<form method='post' action='/dj/logs'>
<label>Start date: <input type='text' class='datepicker' name='start_date' id='start_date'></label>
<br />
<input type='submit' name='submit' value="Submit">
</form>
</div>
{% endblock %}