1 {% extends "base.html" %}
4 <link rel="stylesheet" href="{{ STATIC_URL }}css/filelist.css" type="text/css" />
5 <script type="text/javascript" charset="utf-8" src="{{ STATIC_URL }}js/jquery.paginate.js"></script>
6 <script type="text/javascript" charset="utf-8">
8 $('#file-list').paginate({itemsPerPage: 15});
10 $('#file-list-find-button').click(function(event)
12 var expr = new RegExp( $('#file-list-filter').val() );
14 $('#file-list').filterItems( function(filename) {
15 return expr.test(filename);
18 event.preventDefault();
21 $('#file-list-reset-button').click(function(event)
23 $('#file-list').filterItems();
24 event.preventDefault();
28 {% endblock extrahead %}
30 {% block maincontent %}
31 <div id="main-page-widgets">
33 <div class="file-list-widget">
34 <form action="#" method="GET">
35 <p><input name="filter" id="file-list-filter" type="text" size="60" />
36 <input type="submit" value="Znajdź" id="file-list-find-button"/>
37 <input type="reset" value="Wyczyść" id="file-list-reset-button"/>
41 {% load explorer_tags %}
42 {% for file in files %}
43 <p title="{{file|bookname}}"><a href="{% url editor_view file %}">{{ file|bookname }}</a></p>
48 {% if perms.explorer.can_add_files %}
49 <div class="upload-file-widget">
50 <h2>Dodaj nowy utwór</h2>
51 <form action="{% url file_upload %}" method="POST" enctype="multipart/form-data">
52 <p><label>{{bookform.file.label}}: {{ bookform.file }}</label></p>
53 <p><label>{{bookform.bookname.label}}: {{bookform.bookname}}</label></p>
54 <p><label>{{bookform.autoxml}} {{bookform.autoxml.label}}</label></p>
55 <p><button type="submit">Dodaj książkę</button></p>
61 {% endblock maincontent %}