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