Merge branch 'master' into 3112-report-bug
[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... <span class="caret"></span></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_pane %> tbody"/>
37     </div>
38   </div>
39
40   <table class="table table-condensed arv-index arv-project-<%= tab_pane %>">
41     <colgroup>
42       <col width="0*" style="max-width: fit-content;" />
43       <col width="0*" style="max-width: fit-content;" />
44       <col width="0*" style="max-width: fit-content;" />
45       <col width="60%" style="width: 60%;" />
46       <col width="40%" style="width: 40%;" />
47     </colgroup>
48     <tbody data-infinite-scroller="#<%= tab_pane %>-scroll" data-infinite-content-href="<%= url_for partial: :contents_rows, filters: filters.to_json %>">
49     </tbody>
50     <thead>
51       <tr>
52         <th></th>
53         <th></th>
54         <th></th>
55         <th>name</th>
56         <th>description</th>
57       </tr>
58     </thead>
59   </table>
60 </div>