Missing from previous commit
[arvados.git] / apps / workbench / app / views / collections / _show_recent.html.erb
1 <% content_for :tab_line_buttons do %>
2 <div class="pull-right">
3   <%= form_tag collections_path, method: 'get', remote: true, class: 'form-search' do %>
4   <div class="input-append">
5     <%= text_field_tag :search, params[:search], class: 'search-query' %>
6     <%= submit_tag "Search", name: nil, class: 'btn btn-info' %>
7   </div>  
8   <% end %>
9 </div>
10 <% end %>
11
12 <div style="padding-right: 1em">
13
14 <table id="collections-index" class="topalign table table-bordered table-condensed table-fixedlayout table-smallcontent">
15   <colgroup>
16     <col width="10%" />
17     <col width="36%" />
18     <col width="22%" />
19     <col width="8%" />
20     <col width="16%" />
21     <col width="8%" />
22   </colgroup>
23   <thead>
24     <tr class="contain-align-left">
25       <th>uuid</th>
26       <th>contents</th>
27       <th>owner</th>
28       <th>age</th>
29       <th>tags</th>
30       <th>storage</th>
31     </tr>
32   </thead>
33   <tbody>
34     <%= render partial: 'index_tbody' %>
35   </tbody>
36 </table>
37 </div>
38
39 <% content_for :js do %>
40 $(document).on('click', 'form[data-remote] input[type=submit]', function() {
41   $('table#collections-index tbody').fadeTo(200, 0.3);
42   return true;
43 });
44 <% end %>