blob: 4a2a3c1856e48ebef5f696fcc435f39be687714f (
plain)
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
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
{% block extraMeta %}{% endblock %}
<link rel="stylesheet" href="{{ MEDIA_URL }}css/bp/screen.css" type="text/css" media="screen, projection"/>
<link rel="stylesheet" href="{{ MEDIA_URL }}css/bp/print.css" type="text/css" media="print"/>
<!--[if IE]><link rel="stylesheet" href="{{ MEDIA_URL }}css/ie.css" type="text/css" media="screen, projection"/><![endif]-->
<link rel="stylesheet" href="{{ MEDIA_URL }}css/base.css" type="text/css" media="print"/>
{% block extraCSS %}{% endblock %}
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="{{ MEDIA_URL }}js/base.js"></script>
{% block extraJS %}{% endblock %}
<title>{% block baseTitle %}Top7 Foozball League{% endblock %}{% block extraTitle %}{% endblock %}</title>
</head>
<body class="fullDoc">
<div id="fullWidthContainer" class="container">
{% block header %}
<h1>Top7 Foosball League</h1>
{% endblock %}
<div id="matches" class="span-12 last">
<h2>Games</h2>
{% block contentArea %}
<table>
{% for m in matches%}
<tr>
<td>{{ m.player1 }}</td>
<td>{{ m.player2 }}</td>
<td>{{ m.player3 }}</td>
<td>{{ m.player4 }}</td>
<td>{{ m.score1 }}</td>
<td>{{ m.score2 }}</td>
<td>{{ m.date }}</td>
</tr>
{% endfor %}
</table>
{% endblock %}
</div>
<div id="newmatch" class="span-12 last">
<h2>New Match</h2>
<form method="post" action="/match/">
<select name="p1">
<option value=" "> </option>
{% for p in players %}
<option value="{{ p.id }}">{{ p }}</option>
{% endfor %}
</select>
<select name="p2">
<option value=" "> </option>
{% for p in players %}
<option value="{{ p.id }}">{{ p }}</option>
{% endfor %}
</select>
<select name="p3">
<option value=" "> </option>
{% for p in players %}
<option value="{{ p.id }}">{{ p }}</option>
{% endfor %}
</select>
<select name="p4">
<option value=" "> </option>
{% for p in players %}
<option value="{{ p.id }}">{{ p }}</option>
{% endfor %}
</select>
<input type="text" name="s1" width="5"/>
<input type="text" name="s2" width="5"/>
<input type="submit">
</form>
</div>
<div id="footer" class="span-24 last">
{% block footer %}
{% endblock %}
</div>
</div>
</body>
</html>
|