3637: undo some of the changes to absorb Tom's updates to chooser implementation
[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                   'data-toggle' => 'dropdown'
19             %></li>
20           <li><%= link_to "Move selected", '#',
21                   'data-href' => choose_projects_path(
22                     title: 'Move selected items to...',
23                     editable: true,
24                     action_name: 'Move',
25                     action_href: actions_path,
26                     action_method: 'post',
27                     action_data_from_params: ['selection'],
28                     action_data: {
29                       move_selections_into_project: true,
30                       selection_param: 'uuid',
31                       success: 'page-refresh'}.to_json),
32                   'data-remote' => true,
33                   'data-selection-param-name' => 'selection[]',
34                   'data-selection-action' => 'move'
35             %></li>
36         </ul>
37       </div>
38     </div>
39     <div class="col-sm-4 pull-right">
40       <input type="text" class="form-control filterable-control" placeholder="Search project contents" data-filterable-target="table.arv-index.arv-project-<%= tab_pane %> tbody"/>
41     </div>
42   </div>
43
44   <table class="table table-condensed arv-index arv-project-<%= tab_pane %>">
45     <colgroup>
46       <col width="0*" style="max-width: fit-content;" />
47       <col width="0*" style="max-width: fit-content;" />
48       <col width="0*" style="max-width: fit-content;" />
49       <col width="60%" style="width: 60%;" />
50       <col width="40%" style="width: 40%;" />
51     </colgroup>
52     <tbody data-infinite-scroller="#<%= tab_pane %>-scroll" data-infinite-content-href="<%= url_for partial: :contents_rows %>" data-infinite-content-params-projecttab="<%= {filters: filters}.to_json %>">
53     </tbody>
54     <thead>
55       <tr>
56         <th></th>
57         <th></th>
58         <th></th>
59         <th>name</th>
60         <th>description</th>
61       </tr>
62     </thead>
63   </table>
64 </div>