select box fixed, some css

This commit is contained in:
Sanj 2012-08-14 14:34:24 +05:30
parent 779a88b0d5
commit db8ce381d4
2 changed files with 6 additions and 6 deletions

View File

@ -16,6 +16,6 @@ def edit(request, ctype_id):
context = RequestContext(request, {
'ctypes': ctypes,
'content_type_id': ctype_id
'content_type_id': content_type_id
})
return render_to_response("edit.html", context)

View File

@ -23,10 +23,10 @@ html, body {
#overlayWrapper {
position: absolute;
top: 10px;
right: 10px;
height: 80%;
right: 45px;
bottom: 10px;
overflow: auto;
background: #fff;
background: rgba(204,204,204,0.6);
}
.selectedItem {
@ -45,9 +45,9 @@ CONTENT_TYPE_ID = {{ content_type_id }};
<body>
<div id="map"></div>
<div id="overlayWrapper">
<select id="ctypeList">
<select id="ctypeList" name="ctypeList">
{% for c in ctypes %}
<option value="{{ c.id }}" {% ifequal c.id content_type_id %} selected="selected" {% endifequal %}>
<option value="{{ c.id }}" {% ifequal c.id content_type_id %} selected {% endifequal %}>
{{ c.name }}
</option>
{% endfor %}