Merge branch '3099-spinner-assets' closes #3099
[arvados.git] / apps / workbench / app / views / collections / _show_recent.html.erb
1 <% content_for :tab_line_buttons do %>
2 <div class="pull-right" style="width: 30%">
3   <%= form_tag collections_path, method: 'get', remote: true, class: 'form-search' do %>
4   <div class="input-group">
5     <%= text_field_tag :search, params[:search], class: 'form-control', placeholder: 'Search collections' %>
6     <span class="input-group-btn">
7       <%= button_tag(class: 'btn btn-info') do %>
8       <span class="glyphicon glyphicon-search"></span>
9       <% end %>
10     </span>
11   </div>  
12   <% end %>
13 </div>
14 <% end %>
15
16 <%= render partial: "paging", locals: {results: @collections, object: @object} %>
17
18 <div style="padding-right: 1em">
19
20 <%= form_tag do |f| %>
21
22 <table id="collections-index" class="topalign table table-condensed table-fixedlayout"> <!-- table-fixed-header-row -->
23   <colgroup>
24     <col width="8%" />
25     <col width="10%" />
26     <col width="34%" />
27     <col width="11%" />
28     <col width="12%" />
29     <col width="29%" />
30   </colgroup>
31   <thead>
32     <tr class="contain-align-left">
33       <th></th>
34       <th>uuid</th>
35       <th>contents</th>
36       <th>created at</th>
37       <th>storage</th>
38       <th>tags</th>
39     </tr>
40   </thead>
41   <tbody>
42     <%= render partial: 'index_tbody' %>
43   </tbody>
44 </table>
45
46 <% end %>
47
48 </div>
49
50 <%= render partial: "paging", locals: {results: @collections, object: @object} %>
51
52 <% content_for :footer_js do %>
53 $(document).on('click', 'form[data-remote] input[type=submit]', function() {
54   $('table#collections-index tbody').fadeTo(200, 0.3);
55   return true;
56 });
57 <% end %>