Skip to content
Browse files

add chosen

  • Loading branch information...
1 parent 1871be4 commit 240eb42df4114ebc507e9b9009c914f090840d3d @lukeman lukeman committed Aug 31, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 symposion/templates/schedule/schedule_edit.html
View
8 symposion/templates/schedule/schedule_edit.html
@@ -11,6 +11,7 @@
{% endblock %}
{% block extra_head %}
+ <link rel="stylesheet" href="{{ STATIC_URL }}chosen/chosen.css" />
<style>
td {
font-size: 9pt;
@@ -43,6 +44,9 @@
font-weight: bold;
line-height: 10pt;
}
+ #id_presentation {
+ width:400px;
+ }
</style>
{% endblock %}
@@ -64,7 +68,7 @@
<a class="close" data-dismiss="modal">&times;</a>
<h3>{% trans "Edit Slot" %}</h3>
</div>
- <div class="modal-body">
+ <div class="modal-body" style="height:300px">
{% csrf_token %}
{{ form|as_bootstrap }}
</div>
@@ -77,12 +81,14 @@
{% endblock %}
{% block extra_script %}
+ <script src="{{ STATIC_URL }}chosen/chosen.jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
$("a.edit-slot").click(function() {
$("#slotEditForm").get(0).setAttribute("action", $(this).data("action"));
$("#slotEditModal").modal("show");
});
+ $("#id_presentation").chosen();
});
</script>
{% endblock %}

0 comments on commit 240eb42

Please sign in to comment.
Something went wrong with that request. Please try again.