X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/15f3b1ec20246e7935176a743cc95b4863e6ce24..320fd24b68185b73f1180c425271e037331baa46:/project/templates/explorer/file_list.html diff --git a/project/templates/explorer/file_list.html b/project/templates/explorer/file_list.html index bf6758f2..a9b59e4c 100644 --- a/project/templates/explorer/file_list.html +++ b/project/templates/explorer/file_list.html @@ -64,12 +64,12 @@ $(function() { <input type="reset" value="WyczyÅÄ" id="file-list-reset-button"/> </p> </form> - <div id="file-list"> {% load explorer_tags %} - {% for file in files %} - <p title="{{file|bookname}}"><a href="{% url editor_view file %}">{{ file|bookname }}</a></p> + <ul class="file-tree-part file-tree-top"> + {% for file in filetree %} + {% tree_part file %} {% endfor %} - </div> + </ul> </div> <div id="recent-file-list"> @@ -81,10 +81,12 @@ $(function() { {% if perms.explorer.can_add_files %} <div class="upload-file-widget"> <h2>Dodaj nowy utwór</h2> + <form action="/api/documents" method="POST" enctype="multipart/form-data"> {{ bookform }} <p><button type="submit">Dodaj ksiÄ Å¼kÄ</button></p> </form> + </div> {% endif %}