-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
45 lines (45 loc) · 2.11 KB
/
index.html
File metadata and controls
45 lines (45 loc) · 2.11 KB
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
<!DOCTYPE html>
{% autoescape true %}
<style>
table {
border-collapse: collapse;
}
td, th {
border: 1px solid #ccc;
}
td {
padding: 3px 20px 3px 20px
}
</style>
<html>
<body>
<h1> {{title}} </h1>
<form action="{{uri_for('event', event_id='x') if type=='event' else uri_for('team', team_number='x')}}" method="get">
<input type="text" id="inputtext" value="{{title}}">
<input type="radio" name="uselessname" onclick='this.form.action="{{uri_for("team", team_number="x")}}";'
{{"checked" if type=='team' else ""}}>Team
<input type="radio" name="uselessname" onclick='this.form.action="{{uri_for("event", event_id="x")}}";'
{{"checked" if type=='event' else ""}}>Event<br>
<input type="checkbox" name="fouls" value="True" {{"checked" if options.include_fouls else ""}}>Include foul points<br>
<input type="checkbox" name="playoffs" value="True" {{"checked" if options.include_playoffs else ""}}>Include playoff scores<br>
<input type="radio" name="year" value="2016" {{"checked" if year=="2016" else ""}}>2016
<input type="radio" name="year" value="2017" {{"checked" if year=="2017" else ""}}>2017
<input type="radio" name="year" value="2018" {{"checked" if year=="2018" else ""}}>2018
<input type="radio" name="year" value="2019" {{"checked" if year=="2019" else ""}}>2019<br>
<input onclick='this.form.action=this.form.action.substring(0, this.form.action.length-1);
this.form.action+=document.getElementById("inputtext").value;
' type="submit" value="Go">
</form>
<table border='1'>
{% for key, value in valueDict.items() %}
<tr>
<td> {{value.rank}} </td>
<td> {{key}} </td>
<td> {{value.value|round(2)}} </td>
</tr>
{% endfor %}
</table>
<a href="https://docs.google.com/spreadsheets/d/1a-3YSjR9R_25GdWtm4Ql_zigtorkiiXAhkIUv4ZvZ9k/edit?usp=sharing">Component OPR spreadsheet</a>
</body>
</html>
{% endautoescape %}