1 <% sortable_columns = {} if local_assigns[:sortable_columns].nil? %>
2 <div class="selection-action-container">
5 <div class="btn-group btn-group-sm">
6 <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Selection... <span class="caret"></span></button>
7 <ul class="dropdown-menu" role="menu">
8 <li><%= link_to "Create new collection with selected collections", '#',
9 'data-href' => combine_selected_path(
10 action_data: {current_project_uuid: @object.uuid}.to_json
12 'id' => 'combine_selections_button',
13 'data-selection-param-name' => 'selection[]',
14 'data-selection-action' => 'combine-project-contents',
16 'data-toggle' => 'dropdown'
18 <li><%= link_to "Compare selected", 'action',
19 'data-href' => compare_pipeline_instances_path,
20 'data-selection-param-name' => 'uuids[]',
21 'data-selection-action' => 'compare'
23 <li><%= link_to "Copy selected", '#',
24 'data-href' => choose_projects_path(
25 title: 'Copy selected items to...',
28 action_href: actions_path,
29 action_method: 'post',
30 action_data_from_params: ['selection'],
32 copy_selections_into_project: true,
33 selection_param: 'uuid',
34 success: 'page-refresh'}.to_json),
35 'data-remote' => true,
36 'data-selection-param-name' => 'selection[]',
37 'data-selection-action' => 'copy'
39 <li><%= link_to "Move selected", '#',
40 'data-href' => choose_projects_path(
41 title: 'Move selected items to...',
44 action_href: actions_path,
45 action_method: 'post',
46 action_data_from_params: ['selection'],
48 move_selections_into_project: true,
49 selection_param: 'uuid',
50 success: 'page-refresh'}.to_json),
51 'data-remote' => true,
52 'data-selection-param-name' => 'selection[]',
53 'data-selection-action' => 'move'
55 <li><%= link_to "Remove selected", '#',
56 'data-href' => url_for(action: :remove_items),
57 'data-selection-param-name' => 'item_uuids[]',
58 'data-selection-action' => 'remove',
59 'data-remote' => true,
61 'data-toggle' => 'dropdown'
66 <div class="col-sm-4 pull-right">
67 <input type="text" class="form-control filterable-control" placeholder="Search project contents" data-filterable-target="table.arv-index.arv-project-<%= tab_pane %> tbody"/>
71 <table class="table table-condensed arv-index arv-project-<%= tab_pane %>">
73 <col width="0*" style="max-width: fit-content;" />
74 <col width="0*" style="max-width: fit-content;" />
75 <col width="0*" style="max-width: fit-content;" />
76 <col width="60%" style="width: 60%;" />
77 <col width="40%" style="width: 40%;" />
79 <tbody data-infinite-scroller="#<%= tab_pane %>-scroll" data-infinite-content-href="<%= url_for partial: :contents_rows %>" data-infinite-content-params-projecttab="<%= local_assigns.select{|k| [:order, :limit, :filters].include? k }.to_json %>" data-infinite-content-params-attr="projecttab">
86 <% sort_order = sortable_columns['name'].gsub(/\s/,'') if sortable_columns['name'] %>
87 <th <% if !sort_order.nil? %>
88 data-sort-order='<%= sort_order %>'
92 <% sort_order = sortable_columns['description'].gsub(/\s/,'') if sortable_columns['description'] %>
93 <th <% if !sort_order.nil? %>
94 data-sort-order='<%= sort_order %>'