Advertise filters param in discovery doc.
[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 <div style="padding-right: 1em">
17
18 <table id="collections-index" class="topalign table table-condensed table-fixedlayout table-fixed-header-row">
19   <colgroup>
20     <col width="10%" />
21     <col width="36%" />
22     <col width="15%" />
23     <col width="8%" />
24     <col width="8%" />
25     <col width="23%" />
26   </colgroup>
27   <thead>
28     <tr class="contain-align-left">
29       <th>uuid</th>
30       <th>contents</th>
31       <th>owner</th>
32       <th>age</th>
33       <th>storage</th>
34       <th>tags</th>
35     </tr>
36   </thead>
37   <tbody>
38     <%= render partial: 'index_tbody' %>
39   </tbody>
40 </table>
41 </div>
42
43 <% content_for :footer_js do %>
44 $(document).on('click', 'form[data-remote] input[type=submit]', function() {
45   $('table#collections-index tbody').fadeTo(200, 0.3);
46   return true;
47 });
48 <% end %>