20259: Add documentation for banner and tooltip features
[arvados.git] / apps / workbench / app / views / collections / index.html.erb
index 7a83418c867e401ec79e21b413f28aa017e8cede..e1285e83c63a94be4531eba4cbe6f3c9e717f0c1 100644 (file)
@@ -1,45 +1,18 @@
-<%#= render :partial => 'nav' %>
+<%# Copyright (C) The Arvados Authors. All rights reserved.
 
-<div class="pull-right">
-  <%= form_tag collections_path, method: 'get', remote: true, class: 'form-search' do %>
-  <div class="input-append">
-    <%= text_field_tag :search, params[:search], class: 'search-query' %>
-    <%= submit_tag "Search", name: nil, class: 'btn btn-info' %>
-  </div>  
-  <% end %>
-</div>
+SPDX-License-Identifier: AGPL-3.0 %>
 
-<table id="collections-index" class="topalign table table-bordered table-condensed table-fixedlayout table-smallcontent">
-  <colgroup>
-    <col width="10%" />
-    <col width="50%" />
-    <col width="16%" />
-    <col width="16%" />
-    <col width="8%" />
-  </colgroup>
-  <thead>
-    <tr class="contain-align-left">
-      <th>
-       uuid
-      </th><th>
-       contents
-      </th><th>
-       age
-      </th><th>
-       tags
-      </th><th>
-       storage
-      </th>
-    </tr>
-  </thead>
-  <tbody>
-    <%= render partial: 'index_tbody' %>
-  </tbody>
-</table>
-
-<% content_for :js do %>
-$(document).on('click', 'form[data-remote] input[type=submit]', function() {
-  $('table#collections-index tbody').fadeTo(200, 0.3);
-  return true;
-});
+<% content_for :tab_line_buttons do %>
+ <%= form_tag collections_path, method: 'get', remote: true, class: 'form-search' do %>
+ <div class="input-group">
+   <%= text_field_tag :search, params[:search], class: 'form-control', placeholder: 'Search collections' %>
+   <span class="input-group-btn">
+     <%= button_tag(class: 'btn btn-info') do %>
+     <span class="glyphicon glyphicon-search"></span>
+     <% end %>
+   </span>
+ </div>
+ <% end %>
 <% end %>
+
+<%= render file: 'application/index.html.erb', locals: local_assigns %>