summaryrefslogtreecommitdiff
path: root/templates/main.html
blob: d45f7a791652afbe3769d733f67cb72db83b59db (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
<!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="content" class="span-12 last">
				<h2>Games</h2>
		        {% block contentArea %}
				{% for m in matches%}
					<h3>{{ m }}</h3>
				{% endfor %}
		        {% endblock %}
	        </div>
	
			<div id="content" 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>