Merge branch 'master' into 3654-combine-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 "Combine selections into a new collection", '/combine_selected',
8                   'data-href' => url_for('/combine_selected?show_project=true'),
9                   'data-selection-param-name' => 'selection[]',
10                   'data-selection-action' => 'combine',
11                   'data-remote' => true,
12                   'data-toggle' => 'dropdown'
13             %></li>
14           <li><%= link_to "Compare selected", 'action',
15                   'data-href' => compare_pipeline_instances_path,
16                   'data-selection-param-name' => 'uuids[]',
17                   'data-selection-action' => 'compare'
18             %></li>
19           <li><%= link_to "Copy selected", '#',
20                   'data-href' => choose_projects_path(
21                     title: 'Copy selected items to...',
22                     editable: true,
23                     action_name: 'Copy',
24                     action_href: actions_path,
25                     action_method: 'post',
26                     action_data_from_params: ['selection'],
27                     action_data: {
28                       copy_selections_into_project: true,
29                       selection_param: 'uuid',
30                       success: 'page-refresh'}.to_json),
31                   'data-remote' => true,
32                   'data-selection-param-name' => 'selection[]',
33                   'data-selection-action' => 'copy'
34             %></li>
35           <li><%= link_to "Move selected", '#',
36                   'data-href' => choose_projects_path(
37                     title: 'Move selected items to...',
38                     editable: true,
39                     action_name: 'Move',
40                     action_href: actions_path,
41                     action_method: 'post',
42                     action_data_from_params: ['selection'],
43                     action_data: {
44                       move_selections_into_project: true,
45                       selection_param: 'uuid',
46                       success: 'page-refresh'}.to_json),
47                   'data-remote' => true,
48                   'data-selection-param-name' => 'selection[]',
49                   'data-selection-action' => 'move'
50             %></li>
51           <li><%= link_to "Remove selected", '#',
52                   'data-href' => url_for(action: :remove_items),
53                   'data-selection-param-name' => 'item_uuids[]',
54                   'data-selection-action' => 'remove',
55                   'data-remote' => true,
56                   'method' => 'delete',
57                   'data-toggle' => 'dropdown'
58             %></li>
59         </ul>
60       </div>
61     </div>
62     <div class="col-sm-4 pull-right">
63       <input type="text" class="form-control filterable-control" placeholder="Search project contents" data-filterable-target="table.arv-index.arv-project-<%= tab_pane %> tbody"/>
64     </div>
65   </div>
66
67   <table class="table table-condensed arv-index arv-project-<%= tab_pane %>">
68     <colgroup>
69       <col width="0*" style="max-width: fit-content;" />
70       <col width="0*" style="max-width: fit-content;" />
71       <col width="0*" style="max-width: fit-content;" />
72       <col width="60%" style="width: 60%;" />
73       <col width="40%" style="width: 40%;" />
74     </colgroup>
75     <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 %>">
76     </tbody>
77     <thead>
78       <tr>
79         <th></th>
80         <th></th>
81         <th></th>
82         <th>name</th>
83         <th>description</th>
84       </tr>
85     </thead>
86   </table>
87 </div>