Merge branch 'master' into 3296-user-profile
[arvados.git] / apps / workbench / app / views / projects / _show_tab_contents.html.erb
1 <div class="selection-action-container">
2   <div class="row">
3     <div class="col-sm-5">
4       <div class="btn-group btn-group-sm">
5         <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Selection... <i class="fa fa-fw fa-long-arrow-down "></i></button>
6         <ul class="dropdown-menu" role="menu">
7           <li><%= link_to "Compare selected", '#',
8                   'data-href' => compare_pipeline_instances_path,
9                   'data-selection-param-name' => 'uuids[]',
10                   'data-selection-action' => 'compare'
11             %></li>
12           <li><%= link_to "Remove selected", '#',
13                   'data-href' => url_for(action: :remove_items),
14                   'data-selection-param-name' => 'item_uuids[]',
15                   'data-selection-action' => 'remove',
16                   'data-remote' => true,
17                   'method' => 'delete'
18             %></li>
19                   <li><%= link_to "Move selected", '#',
20                           'data-href' => choose_projects_path(
21                                    title: 'Move to...',
22                                    editable: true,
23                                    action_name: 'Move',
24                                    action_href: move_items_project_path,
25                                    action_method: 'get',
26                                    action_data: {selection_param: 'target',
27                                                  success: 'page-refresh'}.to_json),
28                   'data-remote' => true,
29                   'data-selection-param-name' => 'move_items[]',
30                               'data-selection-action' => 'move'
31             %></li>
32         </ul>
33       </div>
34     </div>
35     <div class="col-sm-4 pull-right">
36       <input type="text" class="form-control filterable-control" placeholder="Search project contents" data-filterable-target="table.arv-index.arv-project-<%= tab_name %> tbody"/>
37     </div>
38   </div>
39
40   <table class="table table-condensed table-fixedlayout arv-index arv-project-<%= tab_name %>" style="overflow-x: hidden">
41     <colgroup>
42       <col width="40%" />
43       <col width="60%" />
44     </colgroup>
45     <tbody data-infinite-scroller="#<%= tab_name %>-scroll" data-infinite-content-href="<%= url_for(format: :json, partial: :contents_rows, offset: page_offset, filters: "#{filters}") if page_offset %>">
46       <%= render partial: 'show_contents_rows', locals: {project: @object, objects_and_names: objects_and_names} %>
47     </tbody>
48     <thead>
49       <tr>
50         <th>
51         </th>
52         <th>
53           description
54         </th>
55       </tr>
56     </thead>
57   </table>
58
59 </div>