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