-
Notifications
You must be signed in to change notification settings - Fork 0
/
existing.html
77 lines (68 loc) · 2.88 KB
/
existing.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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/stylesheets/jquery.mobile-1.0.1.min.css" />
<link type="text/css" rel="stylesheet" href="/stylesheets/main.css" />
<script type="text/javascript" src="/javascript/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="/javascript/sportstables.js"></script>
<script type="text/javascript" src="/javascript/jquery.mobile-1.0.1.min.js"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-24702575-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<title>Make sports tables with SportsTables! the league table generator</title>
</head>
<body>
<div data-role="page" id="existing">
<div data-role="header">
<a href="./" data-icon="home" data-iconpos="notext" data-transition="slideup" data-ajax="false">Home</a>
<h1>SportsTables!</h1>
<div data-role="navbar">
<ul>
<li><a href="#" class="ui-btn-active">Your tables</a></li>
<li><a href="./newtable" data-direction="reverse">Create a new table</a></li>
</ul>
</div><!-- /navbar -->
</div><!-- /header -->
<div data-role="content">
{% if disable %}
<p>You have not created any tables yet.</p>
{% endif %}
{% for g in userdata %}
<h3>View a table</h3>
<form action="/gettable" method="get" data-transition="slidedown">
<div data-role="fieldcontain">
<label for="table_name_ID">Select a table to view</label>
<select name="table_name" id="table_name_ID" {% if disable %}disabled="disabled"{% endif %}>
{% for t in g.tables %}
<option value="{{t.key.id}}">{{t.name|capfirst}}</option>
{% endfor %}
</select>
</div>
<input type="submit" value="View table" {% if disable %}disabled="disabled"{% endif %}>
</form>
<h3>Delete a table</h3>
<form action="/deletetable" method="get">
<div data-role="fieldcontain">
<label for="table_to_delete_ID">Select a table to delete</label>
<select name="table_to_delete" id="table_to_delete_ID" {% if disable %}disabled="disabled"{% endif %}>
{% for t in g.tables %}
<option value="{{t.key.id}}">{{t.name|capfirst}}</option>
{% endfor %}
</select>
</div>
<input id="deletetablesubmit" type="submit" value="Delete table" {% if disable %}disabled="disabled"{% endif %}>
</form>
{% endfor %}
</div><!-- /content -->
{% include "footer.html" %}
</div><!-- /page -->
</body>
</html>