checkboxes for selecting multiple files
[qcg-portal.git] / filex / templates / filex / source.js.html
index 4942015..2b5c1ab 100644 (file)
 </script>
 
 <script type="text/template" id="dir-template">
+    <td class="text-center">
+        <label for="dir-<%= cid %>" class="sr-only">Zaznacz katalog <%= name %></label>
+        <input id="dir-<%= cid %>" type="checkbox" autocomplete="off" <%= checked ? 'checked="checked"' : '' %>>
+    </td>
     <td class="text-center"><span class="glyphicon glyphicon-folder-open" aria-hidden="true"></span></td>
     <td><a class="link" href="#"><%= name %></a></td>
     <td class="text-right"><%= size %></td>
 </script>
 
 <script type="text/template" id="file-template">
+    <td class="text-center">
+        <label for="file-<%= cid %>" class="sr-only">Zaznacz plik <%= name %></label>
+        <input id="file-<%= cid %>" type="checkbox" autocomplete="off" <%= checked ? 'checked="checked"' : '' %>>
+    </td>
     <td class="text-center"><span class="glyphicon glyphicon-file" aria-hidden="true"></span></td>
     <td>
         <a href="{% url 'filex:download' %}?<%= url_params %>"
            class="btn btn-default btn-xs pull-right" title="Pobierz plik">
-            <span class="glyphicon glyphicon-cloud-download" aria-hidden="true"></span>
+            <span class="glyphicon glyphicon-download-alt" aria-hidden="true"></span>
         </a>
         <a class="link" href="#"><%= name %></a>
     </td>