Changeset - 240eb42df411
[Not reviewed]
0 1 0
Luke Hatcher - 12 years ago 2012-08-31 06:32:30
lukeman@gmail.com
add chosen
1 file changed with 7 insertions and 1 deletions:
0 comments (0 inline, 0 general)
symposion/templates/schedule/schedule_edit.html
Show inline comments
...
 
@@ -8,12 +8,13 @@
 
{% block body_class %}full{% endblock %}
 

	
 
{% block right %}
 
{% endblock %}
 

	
 
{% block extra_head %}
 
    <link rel="stylesheet" href="{{ STATIC_URL }}chosen/chosen.css" />
 
    <style>
 
        td {
 
            font-size: 9pt;
 
        }
 
        td.slot {
 
            text-align: center;
...
 
@@ -40,12 +41,15 @@
 
            color: #999;
 
        }
 
        td.slot .title {
 
            font-weight: bold;
 
            line-height: 10pt;
 
        }
 
        #id_presentation {
 
            width:400px;
 
        }
 
    </style>
 
{% endblock %}
 

	
 
{% block body_outer %}
 
    <div class="row">
 
        <div class="span12">
...
 
@@ -61,28 +65,30 @@
 
        <div class="modal fade hide in" id="slotEditModal">
 
            <form id="slotEditForm" class="modal-form" method="POST">
 
                <div class="modal-header">
 
                    <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>
 
                <div class="modal-footer">
 
                    <button type="submit" class="btn btn-primary">Save</button>
 
                </div>
 
            </form>
 
        </div>
 
    </div>
 
{% 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 (0 inline, 0 general)