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