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