From: radhika Date: Wed, 30 Jul 2014 18:16:51 +0000 (-0400) Subject: 3016: prefill input search with value configured in the template X-Git-Tag: 1.1.0~2389^2~1 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/c28309c9482d47c99d26718fab7b1d866e035142?hp=eb3c52158a603946b7680ae5f3f0848c7246eb9c 3016: prefill input search with value configured in the template --- diff --git a/apps/workbench/app/helpers/application_helper.rb b/apps/workbench/app/helpers/application_helper.rb index 1b186c5420..ec29b03a2d 100644 --- a/apps/workbench/app/helpers/application_helper.rb +++ b/apps/workbench/app/helpers/application_helper.rb @@ -266,6 +266,7 @@ module ApplicationHelper action_name: 'OK', action_href: pipeline_instance_path(id: object.uuid), action_method: 'patch', + preconfigured_search_str: "#{value_info[:search_for]}", action_data: { merge: true, selection_param: selection_param, diff --git a/apps/workbench/app/views/application/_choose.html.erb b/apps/workbench/app/views/application/_choose.html.erb index d006a112b7..0d3f71b124 100644 --- a/apps/workbench/app/views/application/_choose.html.erb +++ b/apps/workbench/app/views/application/_choose.html.erb @@ -32,7 +32,7 @@ <% end %> - +