-
Notifications
You must be signed in to change notification settings - Fork 1
/
popup.html
72 lines (68 loc) · 3.49 KB
/
popup.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
<!doctype html>
<html style="width: 500px; height: 500px;" ng-app="app">
<head>
<title>First Draft GIS Extension</title>
<link href="style.css" rel="stylesheet">
<link href="external/bootstrap.min.css" rel="stylesheet">
<link href="external/ui-grid.min.css" rel="stylesheet">
<link href="external/leaflet.css" rel="stylesheet">
<link href="external/leaflet.label.css" rel="stylesheet">
</head>
<body ng-controller="MainController">
<div id="map"></div>
<div class="gridStyle" ui-grid="gridOptions" ui-grid-edit ui-grid-pagination ui-grid-selection></div>
<div>
<button type='button' class='btn btn-primary btn-md' data-toggle='modal' data-target='#downloadModal' style="margin: 10px;">
Download
</button>
<button type='button' class='btn btn-danger btn-md pull-right' ng-click="delete()" style="margin: 10px;">
Delete
</button>
</div>
<!-- are you sure you want to delete everything popup -->
<div class="modal fade" id="deleteModal" tabindex="-1" role="dialog" aria-labelledby="deleteModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h4 class="modal-title" id="deleteModalLabel">Are you sure you want to delete everything?</h4>
</div>
<div class="modal-body" style="text-align: center;">
<div class="btn btn-danger" ng-click="delete_all_places()">Yes</div>
<div class="btn btn-default" data-dismiss="modal" aria-label="Close">No</div>
</div>
</div>
</div>
</div>
<!-- DOWNLOAD MODAL -->
<div class="modal fade" id="downloadModal" tabindex="-1" role="dialog" aria-labelledby="downloadModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h4 class="modal-title" id="downloadModalLabel">In what format would you like to download it?</h4>
</div>
<div class="modal-body">
<div class="btn btn-primary" ng-click="download_csv()">CSV</div>
<div class="btn btn-primary" ng-click="download_geojson()">GeoJSON</div>
</div>
</div>
</div>
</div>
</body>
<script src="fix-sizing.js"></script>
<script src='external/underscore-min.js'></script>
<script src='external/jquery-2.2.4.min.js'></script>
<script src="external/bootstrap.min.js"></script>
<script src="external/leaflet.js"></script>
<script src="external/leaflet.label.js"></script>
<script src="external/angular.min.js"></script>
<script src="external/ui-grid.min.js"></script>
<script src="external/turf.min.js"></script>
<script src='app.js'></script>
<script src='controllers/MainController.js'></script>
</html>