forked from samwich/ember-map-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
57 lines (42 loc) · 1.32 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Ember Map Demo</title>
<link rel="stylesheet" href="css/style.css"/>
<link href="css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<script type="text/x-handlebars" data-template-name="index">
{{render 'events'}}
</script>
<script type="text/x-handlebars" data-template-name="events">
<div id="map_canvas"></div>
{{#view App.MapView contentBinding="this"}}{{/view}}
<hr/>
<p>Nr of records selected = {{selectedCounter}}
<button {{action 'removeSelected'}}>Remove selected events</button>
</p>
<table class="table striped">
<tr>
<th>Selected</td>
<th>Latitude</td>
<th>Longitude</td>
</tr>
{{#each}}
<tr {{bindAttr class="selected:warning"}}>
<td>{{view Ember.Checkbox checkedBinding="selected"}}</td>
<td>{{lat}}</td>
<td>{{lng}}</td>
</tr>
{{/each}}
</table>
</script>
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>
<script src="js/libs/jquery-1.9.1.js"></script>
<script src="js/libs/bootstrap.js"></script>
<script src="js/libs/handlebars-1.0.0.js"></script>
<script src="js/libs/ember-1.0.0-rc.7.js"></script>
<script src="js/app.js"></script>
</body>
</html>