1 {% extends "base.html" %}
5 {% compressed_css 'listing' %}
6 {% endblock extrahead %}
9 {% compressed_js 'listing' %}
10 <script type="text/javascript" charset="utf-8">
12 function search(event) {
13 event.preventDefault();
15 var expr = new RegExp(slugify($('#file-list-filter').val()), 'i');
17 $('#file-list p').hide().filter(function(index) {
18 console.log(expr.test($(this).attr('title')))
19 return expr.test(slugify($('a', this).html()));
23 $('#file-list-find-button').click(search).hide();
24 $('#file-list-filter').bind('keyup change DOMAttrModified', search);
29 {% block maincontent %}
30 <h1><img src="{{STATIC_URL}}/img/logo.png">Platforma Redakcyjna</h1>
32 <div class="document-list">
33 <form action="#" method="GET">
34 <p>Filtr: <input autocomplete="off" name="filter" id="file-list-filter" type="text" size="60" />
35 <input type="submit" value="Znajdź" id="file-list-find-button"/>
36 <input type="reset" value="Wyczyść" id="file-list-reset-button"/>
41 {% for file in document_list %}
42 <p><a href="{% url wiki.views.document_detail file|urlencode %}">{{ file }}</a></p>
48 {% endblock maincontent %}