assigning tickets, new ui
[redakcja.git] / apps / wiki / templates / wiki / document_list.html
1 {% extends "wiki/base.html" %}
2
3 {% load i18n %}
4 {% load pagination_tags %}
5
6 {% block extrabody %}
7 {{ block.super }}
8 <script type="text/javascript" charset="utf-8">
9 $(function() {
10         function search(event) {
11         event.preventDefault();
12         var expr = new RegExp(slugify($('#file-list-filter').val()), 'i');
13         $('#file-list tbody tr').hide().filter(function(index) {
14             return expr.test(slugify( $('a', this).attr('data-id') ));
15         }).show();
16     }
17
18     $('#file-list-find-button').click(search).hide();
19         $('#file-list-filter').bind('keyup change DOMAttrModified', search);
20 });
21 </script>
22 {% endblock %}
23
24 {% block leftcolumn %}
25         <form method="get" action="#">
26     <table id="file-list">
27         <thead>
28                 <tr><th>Filtr:</th>
29                         <th><input autocomplete="off" name="filter" id="file-list-filter" type="text" size="40" /></th>
30                         <th><input type="reset" value="{% trans "Clear filter" %}" id="file-list-reset-button"/></th>
31                         </tr>
32                 </thead>
33                 <tbody>
34         {% autopaginate books 20 %}
35         {% for book in books %}
36             {{ book.list_html }}
37         {% endfor %}
38                 </tbody>
39         <tr><td colspan="3">{% paginate %}</td></tr>
40     </table>
41         </form>
42 {% endblock leftcolumn %}
43
44 {% block rightcolumn %}
45         <div id="last-edited-list">
46                 <h2>{% trans "Your last edited documents" %}</h2>
47             <ol>
48                         {% for slugs, item in last_books %}
49                         <li><a href="{% url wiki_editor slugs.0 slugs.1 %}"
50                                 target="_blank">{{ item.title }}</a><br/><span class="date">({{ item.time|date:"H:i:s, d/m/Y" }})</span></li>
51                         {% endfor %}
52                 </ol>
53         </div>
54 {% endblock rightcolumn %}