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 {% for file in files %}
42 <p title="{{file}}"><a href="{% url editor_view file %}">{{ file }}</a></p>
47 {% if perms.explorer.can_add_files %}
48 <div class="upload-file-widget">
49 <h2>Dodaj nowy utwór</h2>
50 <form action="{% url file_upload %}" method="POST" enctype="multipart/form-data">
52 <p><button type="submit">Dodaj książkę</button></p>
58 {% endblock maincontent %}