/
index.html
194 lines (175 loc) · 6.86 KB
/
index.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Neighborhood Data Collection</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- Le styles -->
<link href="css/bootstrap.css" rel="stylesheet">
<style>
body {
padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
}
</style>
<link href="css/bootstrap-responsive.css" rel="stylesheet">
<link rel="stylesheet" href="css/fileuploader.css">
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Le fav and touch icons -->
<link rel="shortcut icon" href="ico/favicon.ico">
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="ico/apple-touch-icon-57-precomposed.png">
</head>
<body>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<!--
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
-->
<a class="brand" href="#">Neighborhood Data Collection</a>
<!--
<div class="nav-collapse">
<ul class="nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</div>!--/.nav-collapse --
-->
</div>
</div>
</div>
<ul id="nav-tabs" class="nav nav-tabs">
</ul>
<div id="survey-page" class="page container">
<div id="survey-header"></div>
</div> <!-- /survey-page -->
<div id="responses-page" class="page container">
<div class="row">
<div id="responses-header" class="span8"></div>
<script type="text/template" id="header-template">
<h1><%= title %></h1>
</script>
</div>
<div class="row">
<div class="span4">
<h3>Responses <small><span id="response-count"></span> responses so far!</small></h3>
<script type="text/template" id="count-template">
<%= count %>
</script>
<p>
<a class="btn" id="refresh-button"><i class="icon-refresh"></i> Refresh</a>
</p>
</div>
<div class="well span2">
<p>
When you're ready to export:
</p>
<p><a class="btn" id="csv-button"><i class="icon-download"></i> Get data as CSV</a></p>
<div class="row">
<div class="span2">
</div>
<div class="span2">
</div>
</div>
</div>
</div>
<div id="responses" class="row">
<table class="table table-striped table-condensed span8">
<thead id="responses-head"></thead>
<tbody id="responses-body"></tbody>
</table>
</div>
</div> <!-- /survey-page container -->
<div id="scans-page" class="page container">
<div class="row">
<div id="scan-header" class="span8"></div>
<script type="text/template" id="scan-header-template">
<h1><%= title %></h1>
</script>
</div>
<div class="row">
<div class="span4">
<h3>Scanned Paper Forms</h3>
<p>
<a class="btn" id="refresh-button"><i class="icon-refresh"></i> Refresh</a>
</p>
</div>
<div class="well span3">
<span id="scan-count"></span> uploaded so far
<br/>
<span id="pending-count"></span> pending
<br/>
<span id="working-count"></span> being processed
<br/>
<span id="completed-count"></span> completed
<script type="text/template" id="count-template">
<%= count %>
</script>
</div>
</div>
<div id="scans" class="row">
<table class="table table-striped table-condensed span8">
<thead id="scans-head">
<th>Date</th>
<th>File</th>
<th>Status</th>
</thead>
<tbody id="scans-body">
</tbody>
</table>
<script type="text/template" id="scan-item">
<tr><td><%= date %></td><td><a href="<%= url %>"><%= filename %></a></td><td><%= status %></td></tr>
</script>
</div>
</div> <!-- /scan-page container -->
<div id="upload-page" class="page container">
<div id="upload-header">
<h1>Upload scanned paper forms</h1>
</div>
<div>
<div class="span3">
<div id="file-uploader"/>
</div>
</div> <!-- /row-fluid -->
<div>
<div class="span3 offset2">
<div class="drop-area"/>
</div>
</div>
</div> <!-- /upload-page container -->
<!-- Templates -->
<script type="text/template" id="nav-tab-item">
<li id="<%= id %>" class="<%= css %>"><a href="#"><%= title %></a></li>
</script>
<script type="text/template" id="resp-head">
<tr><th>Type</th><th>Parcel ID</th><th>Entered On</th><% _.each(values, function(value) { %> <th><%= value %></th> <%}); %></tr>
</script>
<script type="text/template" id="resp-body-item">
<tr><td><%= type %></td><td><%= parcel_id %></td><td><%= created %></td><% _.each(values, function(value) { %> <td><%= value %></td> <%}); %></tr>
</script>
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="application/javascript" src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.3.3/underscore-min.js"></script>
<script type="application/javascript" src="//cdnjs.cloudflare.com/ajax/libs/backbone.js/0.9.2/backbone-min.js"></script>
<script type="application/javascript" src="js/bootstrap.min.js"></script>
<script type="application/javascript" src="js/page.min.js"></script>
<script src="js/fileuploader.js" type="application/javascript"></script>
<script type="application/javascript" src="js/responses.js"</script>
<script type="application/javascript" src="js/scans.js"</script>
<script type="application/javascript" src="js/main.js"></script>
</body>
</html>