Merge branch '3149-server-side-search' closes #3149
[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 to...',
23                                    editable: true,
24                                    action_name: 'Move',
25                                    action_href: move_items_project_path,
26                                    action_method: 'get',
27                                    action_data: {selection_param: 'target',
28                                                  success: 'page-refresh'}.to_json),
29                   'data-remote' => true,
30                   'data-selection-param-name' => 'move_items[]',
31                               'data-selection-action' => 'move'
32             %></li>
33         </ul>
34       </div>
35     </div>
36     <div class="col-sm-4 pull-right">
37       <input type="text" class="form-control filterable-control" placeholder="Search project contents" data-filterable-target="table.arv-index.arv-project-<%= tab_pane %> tbody"/>
38     </div>
39   </div>
40
41   <table class="table table-condensed arv-index arv-project-<%= tab_pane %>">
42     <colgroup>
43       <col width="0*" style="max-width: fit-content;" />
44       <col width="0*" style="max-width: fit-content;" />
45       <col width="0*" style="max-width: fit-content;" />
46       <col width="60%" style="width: 60%;" />
47       <col width="40%" style="width: 40%;" />
48     </colgroup>
49     <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 %>">
50     </tbody>
51     <thead>
52       <tr>
53         <th></th>
54         <th></th>
55         <th></th>
56         <th>name</th>
57         <th>description</th>
58       </tr>
59     </thead>
60   </table>
61 </div>