/
index.html
100 lines (90 loc) · 3 KB
/
index.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
{% extends "application.html" %}
{% block content %}
<h1>Schedule</h1>
<h2>{{term}}</h2>
{% if messages %}
<ul class="messages">
{% for message in messages %}
<li{% if message.tags %} class="{{message.tags }}"{% endif %}>{{message}}</li>
{% endfor %}
</ul>
{% endif %}
{% block header %}
<link rel="stylesheet" type="text/css" href="/site_media/stylesheets/make_schedule.css"/>
<script type="text/javascript" src="/site_media/javascripts/jquery-min.js"></script>
<script>schedule = {{json|safe}}</script>
<script type="text/javascript" src="/site_media/javascripts/schedule.js"></script>
{% endblock %}
<div class="schedule-navigation">
{% if current_term %}
<a href="next_term/"><span>Next Term >></span></a>
{% else %}
<a href="/schedule/"><span><< Current Term</span></a>
{% endif %}
</div>
<div class="span-24 last">
<div class="span-18">
<table>
<tr id="headers">
<th>Hour</th>
<th>Monday</th>
<th>Tuesday</th>
<th>Wednesday</th>
<th>Thursday</th>
<th>Friday</th>
<th>Saturday</th>
<th>Sunday</th>
</tr>
{% for hour in range %}
<tr id="hour-{{hour}}" class="hours">
<td class="Hour">{{hour}}:00</td>
<td class="Monday"></td>
<td class="Tuesday"></td>
<td class="Wednesday"></td>
<td class="Thursday"></td>
<td class="Friday"></td>
<td class="Saturday"></td>
<td class="Sunday"></td>
</tr>
<tr id="hour-{{hour}}-half" class="hours">
<td class="Hour">{{hour}}:30</td>
<td class="Monday"></td>
<td class="Tuesday"></td>
<td class="Wednesday"></td>
<td class="Thursday"></td>
<td class="Friday"></td>
<td class="Saturday"></td>
<td class="Sunday"></td>
</tr>
{% endfor %}
</table>
</div>
{% comment %} Course information table with drop course checkboxes {% endcomment %}
<form action="." method="post">
<table>
<tr>
<th>Class</th>
<th>Title</th>
<th>Type</th>
<th>Instructor</th>
<th>Location</th>
<th>Days</th>
<th>Time</th>
<th><input type="submit" name="dropform" value="Drop"</th>
</tr>
{% for course in schedule %}
<tr>
<td><a href="/course/{{course.department|upper}}{{course.number}}">{{course.department|upper}} {{course.number}}</a></td>
<td>{{course.title}}</td>
<td>{{course.type}}</td>
<td>{{course.instructor}}</td>
<td>{{course.location.building}} {{course.location.room}}</td>
<td>{{course.days|join:"" }}</td>
<td>{{course.times|join:"-" }}</td>
<td><input type="checkbox" name="drop" value={{course.crn}}></td>
</tr>
{% endfor %}
</form>
</table>
</div>
{% endblock %}