Merge branch 'master' into 3637-copy-selections
[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 "Copy selected", '#',
13                           'data-href' => choose_projects_path(
14                                    title: 'Copy into...',
15                                    editable: true,
16                                    action_name: 'Copy',
17                                    action_href: copy_items_project_path,
18                                    action_method: 'get',
19                                    action_data: {selection_param: 'target',
20                                                  success: 'page-refresh'}.to_json),
21                   'data-remote' => true,
22                   'data-selection-param-name' => 'move_or_copy_items[]',
23                               'data-selection-action' => 'copy'
24             %></li>
25           <li><%= link_to "Move selected", '#',
26                           'data-href' => choose_projects_path(
27                                    title: 'Move to...',
28                                    editable: true,
29                                    action_name: 'Move',
30                                    action_href: move_items_project_path,
31                                    action_method: 'get',
32                                    action_data: {selection_param: 'target',
33                                                  success: 'page-refresh'}.to_json),
34                   'data-remote' => true,
35                   'data-selection-param-name' => 'move_or_copy_items[]',
36                               'data-selection-action' => 'move'
37             %></li>
38           <li><%= link_to "Remove selected", '#',
39                   'data-href' => url_for(action: :remove_items),
40                   'data-selection-param-name' => 'item_uuids[]',
41                   'data-selection-action' => 'remove',
42                   'data-remote' => true,
43                   'method' => 'delete',
44                   'data-toggle' => 'dropdown'
45             %></li>
46         </ul>
47       </div>
48     </div>
49     <div class="col-sm-4 pull-right">
50       <input type="text" class="form-control filterable-control" placeholder="Search project contents" data-filterable-target="table.arv-index.arv-project-<%= tab_pane %> tbody"/>
51     </div>
52   </div>
53
54   <table class="table table-condensed arv-index arv-project-<%= tab_pane %>">
55     <colgroup>
56       <col width="0*" style="max-width: fit-content;" />
57       <col width="0*" style="max-width: fit-content;" />
58       <col width="0*" style="max-width: fit-content;" />
59       <col width="60%" style="width: 60%;" />
60       <col width="40%" style="width: 40%;" />
61     </colgroup>
62     <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 %>">
63     </tbody>
64     <thead>
65       <tr>
66         <th></th>
67         <th></th>
68         <th></th>
69         <th>name</th>
70         <th>description</th>
71       </tr>
72     </thead>
73   </table>
74 </div>