openmumbai/openmumbai/templates/edit.html

69 lines
1.5 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;
right: 10px;
height: 80%;
overflow: auto;
background: #fff;
}
.selectedItem {
background-color: green;
}
</style>
<script src="/static/leaflet/leaflet.js"></script>
<script src="/static/leaflet/leaflet.draw.js"></script>
<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>
<div id="overlayWrapper">
2012-08-14 05:40:46 +00:00
<select id="ctypeList">
{% for c in ctypes %}
<option value="{{ c.id }}" {% ifequal c.id content_type_id %} selected="selected" {% endifequal %}>
{{ c.name }}
</option>
{% endfor %}
</select>
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>