aboutsummaryrefslogtreecommitdiff
path: root/templates/register.html
blob: 7007a3c18e79c9bf0c4ba1fab066fb21bd375408 (plain) (blame)
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Peer Pao</title>
<link rel="stylesheet" href="/static/style.css" />
</head>
<body>
<header>
<div class="header-content">
	<div class="header-left">
		<h1><a href="/"><img src="/static/peer-pao-white.png" title="Peer Pao"> Peer Pao</a></h1>
	</div>
	<div class="header-right">
		<p><a href="/login">{{lfmu[0]}}, {{lfmu[1]}} {{lfmu[2]}}</a></p>
	</div>
</div>
</header>
<div class="content">
	{% if snotes %}
	<div id="snotes">
	{% for snote in snotes %}
	{{ snote }}<br />
	{% endfor %}
	</div>
	{% endif %}

	<h2>
		Available meetings to register in:
	</h2>
	{% if available_meetings %}
			<table>
			<colgroup>
				<col style="width: 11em; min-width: 11em;">
				<col style="width: 3em; min-width: 3em;">
				<col style="width: 20em; min-width: 20em;">
				<col style="width: 7em; min-width: 7em;">
				<col style="width: 5em; min-width: 5em;">
				<col style="min-width: 10em">
				<col style="width: 3em; min-width: 3em;">
			</colgroup>
			<tr>
				<th scope="col">Mentor</th>
				<th scope="col"><abbr title="Mentor's Year">Year</abbr></th>
				<th scope="col">Mentor's Subjects</th>
				<th scope="col">Date</th>
				<th scope="col"><abbr title="Time in 24H Format">Time</abbr></th>
				<th scope="col">Notes</th>
				<th scope="col">Actions</th>
			</tr>
			{% for i in available_meetings %}
				<tr>
					<td>{{ i[1][0] }}, {{ i[1][1] }}<br />{{ i[1][2] }}</td>
					<td>{{ i[7] }}</td>
					<td><ul style="padding-left: 15px">{% for x in i[2] %}<li>{{x}}</li>{% endfor %}</ul></td>
					<td>{{ i[3] }}</td>
					<td>{{ i[4] }} to<br />{{ i[5] }}</td>
					<td>{{ i[6] }}</td>
					<td>
						<a href="/meeting/{{ i[0] }}">
						View
						</a>
					</td>
				</tr>
			{% endfor %}
			</table>
	{% else %}
		<p>
		There are no available meetings. 你们都太卷了,或者是,mentor 太少了……
		</p>
	{% endif %}
</div>
</body>
</html>