openmumbai/openmumbai/templates/edit.html

99 lines
2.1 KiB
HTML
Raw Normal View History

2012-08-12 14:07:57 +00:00
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="/static/leaflet/leaflet.css" />
<link rel="stylesheet" href="/static/leaflet/leaflet.draw.css" />
<!--[if lte IE 8]>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.4.4/leaflet.ie.css" />
<![endif]-->
<style type="text/css">
html, body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
#map {
width: 100%;
height: 100%;
}
#overlayWrapper {
position: absolute;
top: 10px;
2012-08-14 09:04:24 +00:00
right: 45px;
bottom: 10px;
2012-08-12 14:07:57 +00:00
overflow: auto;
2012-08-17 07:45:05 +00:00
background: rgba(255,255,255,0.7);
2012-08-12 14:07:57 +00:00
}
.selectedItem {
2012-08-17 07:45:05 +00:00
background-color: #7EF6EF;
}
#itemsList li {
cursor:pointer;
list-style-type: none;
2012-08-17 07:46:49 +00:00
padding-top: 4px;
padding-bottom: 4px;
2012-08-17 07:45:05 +00:00
font-family: sans-serif;
font-size: 17px;
color: #333;
}
#itemsList li:hover {
color: #000;
2012-08-12 14:07:57 +00:00
}
2012-08-17 07:33:41 +00:00
#opacityControl {
position: absolute;
width: 20%;
left: 40%;
bottom: 25px;
}
#opacityRange {
width: 100%;
}
2012-08-12 14:07:57 +00:00
</style>
<script src="/static/leaflet/leaflet.js"></script>
<script src="/static/leaflet/leaflet.draw.js"></script>
2012-08-14 12:06:27 +00:00
<script src="/static/leaflet/TileLayer.Bing.js"></script>
2012-08-12 14:07:57 +00:00
<script src="http://code.jquery.com/jquery.js"></script>
2012-08-14 05:40:46 +00:00
<script>
CONTENT_TYPE_ID = {{ content_type_id }};
2012-08-12 14:07:57 +00:00
2012-08-14 05:40:46 +00:00
</script>
2012-08-12 14:07:57 +00:00
</head>
<body>
<div id="map"></div>
2012-08-17 07:33:41 +00:00
<div id="opacityControl">
<input type="range" min="0" max="1" step="0.1" value="1" id="opacityRange" />
</div>
2012-08-12 14:07:57 +00:00
<div id="overlayWrapper">
2012-08-14 09:04:24 +00:00
<select id="ctypeList" name="ctypeList">
2012-08-14 05:40:46 +00:00
{% for c in ctypes %}
2012-08-14 09:04:24 +00:00
<option value="{{ c.id }}" {% ifequal c.id content_type_id %} selected {% endifequal %}>
2012-08-14 05:40:46 +00:00
{{ c.name }}
</option>
{% endfor %}
</select> <br />
2012-08-17 07:33:41 +00:00
2012-08-12 14:07:57 +00:00
<ul id="itemsList">
</ul>
<div id="itemInfo">
</div>
</div>
<script src="/static/js/edit.js"></script>
</body>
</html>