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