aboutsummaryrefslogtreecommitdiff
path: root/templates/expertise.html
blob: cd3efc7cd433d03925aa5538dc9e1bf0e622f7ae (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
76
<!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">

<h2>
	What subject(s) do you want to mentor?
</h2>

{% if snotes %}
<div id="snotes">
{% for snote in snotes %}
{{ snote }}<br />
{% endfor %}
</div>
{% endif %}

<form class="plain" action="/" method="post">
	<input type="hidden" name="action" value="expertise" />
	<table>
		{% for subjectid, subjectname, checked in subjects %}
			<tr>
				<td style="width: 1.5em;">
				{% if checked %}
				<input id="{{subjectid}}" type="checkbox" name="expertise" checked value="{{subjectid}}" />
				{% else %}
				<input id="{{subjectid}}" type="checkbox" name="expertise" value="{{subjectid}}" />
				{% endif %}
				</td>
				<td>
				<label for="{{subjectid}}">{{subjectname}}</label>
				</td>
			</tr>
		{% endfor %}
	</table>
	<p>
	Your year group:
	<input id="yNone" type="radio" name="year" value="None" {{y0checked}} />
	<label for="yNone">None</label>
	&nbsp;
	<input id="y9" type="radio" name="year" value="Y9" {{y9checked}} />
	<label for="y9">Y9</label>
	&nbsp;
	<input id="y10" type="radio" name="year" value="Y10" {{y10checked}} />
	<label for="y10">Y10</label>
	&nbsp;
	<input id="y11" type="radio" name="year" value="Y11" {{y11checked}} />
	<label for="y11">Y11</label>
	&nbsp;
	<input id="y12" type="radio" name="year" value="Y12" {{y12checked}} />
	<label for="y12">Y12</label>
	</p>
	<input type="submit" value="Submit" />
	<!--TODO: Fix CSS-->
</form> 
</div>
</body>
</html>