PageRenderTime 13ms CodeModel.GetById 9ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/feincms/templates/admin/medialibrary/mediafile/change_list.html

http://github.com/feincms/feincms
HTML | 39 lines | 37 code | 2 blank | 0 comment | 0 complexity | 2559989ac76d3da673b405d72476bd0e MD5 | raw file
 1{% extends "admin/change_list.html" %}
 2
 3{% load i18n %}
 4
 5{% block content %}{{ block.super }}
 6<div class="module">
 7    <form action="{% url "admin:mediafile_bulk_upload" %}" method="POST" enctype="multipart/form-data">
 8	{% csrf_token %}
 9    <p style="color: #666; font-size: 11px;">
10        <label for="data">{% trans "Bulk upload a ZIP file:" %}
11            <input type="file" name="data">
12        </label>
13        | {% trans "Category" %}
14        <select name="category">
15            <option value="">---</option>
16            {% for cat in categories %}
17                <option value="{{ cat.id }}">{{ cat.path }}</option>
18            {% endfor %}
19        </select>
20        | {% trans "Overwrite" %}
21        <input type="checkbox" name="overwrite">
22        |
23        <input type="submit" value="{% trans "Send" %}">
24    </p>
25    </form>
26</div>
27<script type="text/javascript">
28if (window.location.href.indexOf('pop=1') != -1) {
29    (function($){
30        $(function() {
31            $('#result_list img').bind('click', function() {
32                $(this).parents('tr').find('th:nth(0) a').trigger('click');
33                return false;
34            });
35        });
36    })(django.jQuery);
37}
38</script>
39{% endblock %}