4024: Add test for double-load bug.
[arvados.git] / apps / workbench / app / views / pipeline_instances / index.html.erb
index 4b73bd499a16a39b89bccd419b8e79d570c5f30b..e538815b228adb84c6264cc2153c0b25eacd0722 100644 (file)
@@ -1,8 +1,18 @@
 <% 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| %>
+  <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, style: 'display: none'} %>
   &nbsp;
-<% end rescue nil %>
+  <% end rescue nil %>
+
 <% end %>
 
 <%= render file: 'application/index.html.erb', locals: local_assigns %>