1 {% extends "base.html" %}
3 {% block maincontent %}
5 {% if perms.explorer.can_add_files %}
6 <h2>Dodaj nowy utwór</h2>
8 <form action="{% url file_upload %}" method="POST" enctype="multipart/form-data">
10 <p><button type="submit">Dodaj książkę</button></p>
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>
24 <span>Strona {{files.number}} z {{files.paginator.num_pages}}</span>
26 {% if files.has_next %}
27 <span class="next-page-marker">
28 <a href="?page={{ files.next_page_number }}">Następna</a>
33 {% for file in files.object_list %}
35 <td>{{forloop.counter0|add:files.start_index}}.</td>
36 <td><a href="{% url editor_view file %}">{{ file }}</a></td>
43 {% endblock maincontent %}