Poprawki do file upload i toolbar.
[redakcja.git] / project / templates / explorer / file_list.html
1 {% extends "base.html" %}
2
3 {% block maincontent %}
4
5 {% if perms.explorer.can_add_files %}
6 <h2>Dodaj nowy utwór</h2>
7
8 <form action="{% url file_upload %}" method="POST" enctype="multipart/form-data">
9     {{ bookform.as_p }}
10     <p><button type="submit">Dodaj książkę</button></p>
11 </form>
12 {% endif %}
13
14 <h2>Wszystkie utwory:</h2>
15 <table class="object-list" cellspacing="0">
16     <tr><th>Lp.</th><th>Nazwa utworu</th><th>Wersje</th></tr>
17     <tr><td colspan="3" class="page-navigation">
18         {% if files.has_previous %}
19         <span class="prev-page-marker">
20             <a href="?page={{ files.previous_page_number }}">Poprzednia</a>
21         </span>
22         {% endif %}
23
24         <span>Strona {{files.number}} z {{files.paginator.num_pages}}</span>
25
26         {% if files.has_next %}
27         <span class="next-page-marker">
28             <a href="?page={{ files.next_page_number }}">Następna</a>
29         </span>
30         {% endif %}
31     </td>
32     </tr>
33     {% for file in files.object_list %}
34     <tr>
35         <td>{{forloop.counter0|add:files.start_index}}.</td>
36         <td><a href="{% url editor_view file %}">{{ file }}</a></td>
37         <td> &nbsp; </td>
38     </tr>
39     {% endfor %}
40 </table>
41
42
43 {% endblock maincontent %}