forked from hchapman/WBOR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
playlist.html
44 lines (40 loc) · 1.29 KB
/
playlist.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
{% extends "base.html" %}
{% block title %}Playlists{% endblock %}
{% block main_content %}
<h4>Playlists</h4>
<div class='center onecol'>
<div id='playlistsearch'>
<h5>Playlist Search</h5>
<form method="GET" id="" action="">
<label for="programdate">Date (leave blank for most recent playlist):
<input type="text" class="datepicker" name="programdate" id="programdate" />
</label>
<label for="show">Show:
<select id="show" name="show">
<option value="">All shows</option>
{% for s in shows %}<option value={{ s.slug }}>{{ s.title }}</option>{% endfor %}
</select>
</label>
<input type="submit" value="Search" />
</form>
</div>
<div id='playlistresults'>
{% if plays %}
<ul style='display:none;'>
{% for p in plays %}
{% ifchanged %}
</ul>
{% if p.program.slug %}<h5><a href='/programs/{{ p.program.slug }}'>{{ p.program.title }}</a></h5>{% else %}
<h5>{{ p.program.title }}</h5>
{% endif %}
<h6>{{ p.play_date|date:"F d, Y"}}</h6>
<ul>
{% endifchanged %}
<li>{{ p.song.title }} – {{ p.song.artist }}</li>
{% endfor %}
{% else %}
We have no playlists for this show at the time specified. Perhaps they haven't charted yet.
{% endif %}
</div>
</div>
{% endblock %}