Merge branch 'master' into 9766-register-workflow
[arvados.git] / apps / workbench / app / views / collections / _show_recent.html.erb
1 <div class="selection-action-container" style="padding-left: 1em">
2   <div class="row">
3     <div class="pull-left">
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 "Create new collection with selected collections", '#',
8                   method: :post,
9                   'data-href' => combine_selected_path,
10                   'data-selection-param-name' => 'selection[]',
11                   'data-selection-action' => 'combine-collections',
12                   'data-toggle' => 'dropdown'
13             %></li>
14         </ul>
15       </div>
16     </div>
17   </div>
18   <p/>
19
20 <%= render partial: "paging", locals: {results: @objects, object: @object} %>
21
22 <div style="padding-right: 1em">
23
24 <%= form_tag do |f| %>
25
26 <table id="collections-index" class="topalign table table-condensed table-fixedlayout"> <!-- table-fixed-header-row -->
27   <colgroup>
28     <col width="10%" />
29     <col width="10%" />
30     <col width="40%" />
31     <col width="10%" />
32     <col width="30%" />
33   </colgroup>
34   <thead>
35     <tr class="contain-align-left">
36       <th></th>
37       <th>uuid</th>
38       <th>contents</th>
39       <th>created at</th>
40       <th>tags</th>
41     </tr>
42   </thead>
43   <tbody>
44     <%= render partial: 'index_tbody' %>
45   </tbody>
46 </table>
47
48 <% end %>
49
50 </div>
51
52 <%= render partial: "paging", locals: {results: @objects, object: @object} %>
53
54 <% content_for :footer_js do %>
55 $(document).on('click', 'form[data-remote] input[type=submit]', function() {
56   $('table#collections-index tbody').fadeTo(200, 0.3);
57   return true;
58 });
59 <% end %>
60
61 </div>