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, { context = RequestContext(request, {
'ctypes': ctypes, 'ctypes': ctypes,
'content_type_id': ctype_id 'content_type_id': content_type_id
}) })
return render_to_response("edit.html", context) return render_to_response("edit.html", context)

View File

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