POST works to actions controller, still need to implement the actual action to build...
[arvados.git] / apps / workbench / app / views / collections / _show_files.html.erb
index 385af8a27205c98be3cb43974cb0bbde5c9740ce..a8535ab2595b75b7b33c7c3a5b3868b491cbdf18 100644 (file)
@@ -1,5 +1,6 @@
 <table class="table table-condensed table-fixedlayout">
   <colgroup>
+    <col width="4%" />
     <col width="35%" />
     <col width="40%" />
     <col width="15%" />
@@ -7,6 +8,7 @@
   </colgroup>
   <thead>
     <tr>
+      <th></th>
       <th>path</th>
       <th>file</th>
       <th style="text-align:right">size</th>
     <% if @object then @object.files.sort_by{|f|[f[0],f[1]]}.each do |file| %>
     <% file_path = "#{file[0]}/#{file[1]}" %>
     <tr>
+      <td>
+        <% puts "#{file[0]} #{file[1]} #{file_path}" %>
+        <%= check_box_tag 'uuids[]', @object.uuid+file_path, false, {
+              :class => 'persistent-selection', 
+              :friendly_type => "File",
+              :friendly_name => "#{@object.uuid}/#{file_path}",
+              :href => "#{url_for controller: 'collections', action: 'show', id: @object.uuid }/#{file_path}" 
+            } %>
+      </td>
       <td>
         <%= file[0] %>
       </td>