X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/4a8343e204c222e72e4ad7b6fef2e192cc559ac8..8ad03264f1a47afe5108b1252ec3ec139dc16d9a:/project/templates/explorer/file_list.html

diff --git a/project/templates/explorer/file_list.html b/project/templates/explorer/file_list.html
index b4e31e6f..a9b59e4c 100644
--- a/project/templates/explorer/file_list.html
+++ b/project/templates/explorer/file_list.html
@@ -48,7 +48,7 @@ $(function() {
 	
 	$.each(options.recentFiles, function(index) {
 		var fileId = options.recentFiles[index].fileId;
-		$('#recent-file-list ul').append('<li><a href="/editor/' + fileId + '/">' + fileId + '</a></li>');
+		$('#recent-file-list ul').append('<li><a href="{% url editor_base %}'+fileId+'">' + fileId + '</a></li>');
 	});
 });
 </script>
@@ -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,12 +81,12 @@ $(function() {
 {% if perms.explorer.can_add_files %}
 <div class="upload-file-widget">
 <h2>Dodaj nowy utwór</h2>
-<form action="{% url file_upload %}" method="POST" enctype="multipart/form-data">
-    <p><label>{{bookform.file.label}}: {{ bookform.file }}</label></p>
-    <p><label>{{bookform.bookname.label}}: {{bookform.bookname}}</label></p>
-    <p><label>{{bookform.autoxml}} {{bookform.autoxml.label}}</label></p>
+
+<form action="/api/documents" method="POST" enctype="multipart/form-data">
+    {{ bookform }}
     <p><button type="submit">Dodaj książkę</button></p>
 </form>
+
 </div>
 {% endif %}