forked from 18F/PriceHistoryGUI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStartPage.tpl
101 lines (77 loc) · 2.92 KB
/
StartPage.tpl
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="UTF-8">
<title>PricesPaid v. 2.0 BETA Start</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="theme/css/bootstrap.css">
<link href="./theme/css/shared.css" rel="stylesheet" type="text/css" media="screen, projection">
<link href="./theme/css/mainPage.css" rel="stylesheet" type="text/css" media="screen, projection">
{{!goog_anal_script}}
</head>
<body id="start">
<img id="betastripe" src="theme/img/Beta2.0.png" alt="Beta 2.0">
<div id="header">
<div class="col-md-3 col-xs-5 logo">
<span id="pricespaid_logo"><img src="theme/img/pp_logo_beta.png" alt="PricesPaid"></span>
</div>
<div class="col-md-9 col-xs-7">
<nav class="navbar" role="navigation">
<!-- Collect the nav links, forms, and other content for toggling -->
<div>
<ul class="nav navbar-nav">
<li id="return_to_search" class="active"><a href="#">Search</a></li>
<li id="logoutLink"><a href="#">Logout</a></li>
<li id="helplink" ><a href="./SearchHelp" >Help!</a></li>
</ul>
</div>
</nav>
</div>
</div>
<form method="get" id="fakeLogoutForm" action="./">
</form>
<form method="post" id="fakeReturnForm" action="./PricesPaid">
<input type="hidden" name="antiCSRF" value="{{acsrf}}" />
<input type="hidden" name="session_id" value="{{session_id}}" />
</form>
<div id="content" class="inner">
<div id="introtextblock">
<h3>Welcome to the Prices Paid (P3) website!</h3>
<h3>The database currently contains these datasets:</h3>
<h3>Begin by entering the term you want to search for.</h3>
{{!dataset_description_preamble}}
</div>
<form id="bigsearchform" method="post" action="PricesPaid">
<input type="hidden" name="antiCSRF" value="{{acsrf}}" />
<input type="hidden" name="session_id" value="{{session_id}}" />
<input type="hidden" name="commodity_id" id="commodity_id" />
<div><input name="search_string" id="search_string"
placeholder="Search ..." maxlength="500"
class="input_text" title="Search the database" type="text">
<input id="bigsearchbutton" name="submit" value="Search" class="input_submit" title="Click here to search the database" type="submit"></div>
</form>
</div>
{{!footer_html}}
</body>
<script src="../js/jquery.min.js"></script>
<script src="./js/header.js"></script>
<script>
$(document).ready(function(){
$("#logoutLink").click(Logout);
$("#pricespaid_logo").click(function() {
$('#fakeReturnForm').submit();
});
});
function formSubmit()
{
if ($("#search_string").val().length != 0) {
$("#bigsearchform").submit();
} else {
alert("Please enter a search term!");
}
}
$('#bigsearchbutton').click(formSubmit);
$("#header ul li.logout").click(Logout);
</script>
</html>