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