Merge branch '17106-s3-fed-token'
[arvados.git] / apps / workbench / app / views / pipeline_instances / index.html.erb
index ee6f0bd36a28fe6acb18634143dfb8b3b5109a73..250d51a885e313ffbd82b42e70a8a884e3c7d2aa 100644 (file)
@@ -1,20 +1,21 @@
+<%# Copyright (C) The Arvados Authors. All rights reserved.
+
+SPDX-License-Identifier: AGPL-3.0 %>
+
 <% content_for :tab_line_buttons do %>
-<%= form_tag({action: 'compare', controller: params[:controller], method: 'get'}, {method: 'get', id: 'compare', class: 'pull-right small-form-margin'}) do |f| %>
-  <%= submit_tag 'Compare 2 or 3 selected', {class: 'btn btn-primary', disabled: true, style: 'display: none'} %>
-  &nbsp;
-<% end rescue nil %>
+  <div class="input-group">
+    <input type="text" class="form-control filterable-control recent-pipeline-instances-filterable-control"
+           placeholder="Search pipeline instances"
+           data-filterable-target="#recent-pipeline-instances"
+           <%# Just for the double-load test in FilterableInfiniteScrollTest: %>
+           value="<%= params[:search] %>"
+           />
+  </div>
+
+  <%= form_tag({action: 'compare', controller: params[:controller], method: 'get'}, {method: 'get', id: 'compare', class: 'pull-right small-form-margin'}) do |f| %>
+    <%= submit_tag 'Compare 2 or 3 selected', {class: 'btn btn-primary', disabled: true} %>
+  <% end rescue nil %>
 
-  <%= form_tag pipeline_instances_path, method: 'get', remote: true, class: 'form-search' do %>
-    <div class="input-group">
-      <input type="text" class="form-control filterable-control" placeholder="Search pipeline instances" 
-             data-filterable-target="table.arv-recent-pipeline-instances tbody"/>
-       <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 %>