X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/9d6ce80869e187a7c5a574ea5a5272bb89dd81ce..ab874e9d6cd3313ce827dc4d4d574913575ad095:/apps/workbench/app/views/pipeline_instances/_show_inputs.html.erb diff --git a/apps/workbench/app/views/pipeline_instances/_show_inputs.html.erb b/apps/workbench/app/views/pipeline_instances/_show_inputs.html.erb index a1b90ec765..4573919286 100644 --- a/apps/workbench/app/views/pipeline_instances/_show_inputs.html.erb +++ b/apps/workbench/app/views/pipeline_instances/_show_inputs.html.erb @@ -1,16 +1,19 @@ <% n_inputs = 0 %> <% content_for :pi_input_form do %> -
+
<% @object.components.each do |cname, component| %> <% next if !component %> <% component[:script_parameters].andand.each do |pname, pvalue_spec| %> <% if pvalue_spec.is_a? Hash %> <% if (pvalue_spec[:description] or - (pvalue_spec[:required] and not pvalue_spec[:value])) %> + ((pvalue_spec[:required] or pvalue_spec[:optional] == false) and + not pvalue_spec[:value])) %> <% n_inputs += 1 %> - +

<%= render_pipeline_component_attribute @object, :components, [cname, :script_parameters, pname.to_sym], pvalue_spec %> @@ -28,24 +31,20 @@ <% end %> <% if n_inputs == 0 %> -

-

This pipeline does not need any further inputs specified. You can start it by clicking the "Run" button.

-
+

This pipeline does not need any further inputs specified. You can start it by clicking the "Run" button whenever you're ready. (It's not too late to change existing settings, though.)

<% else %> -
-

Provide <%= n_inputs > 1 ? 'values' : 'a value' %> for the following <%= n_inputs > 1 ? 'parameters' : 'parameter' %>, then click the "Run" button to start the pipeline.

-
+

Provide <%= n_inputs > 1 ? 'values' : 'a value' %> for the following <%= n_inputs > 1 ? 'parameters' : 'parameter' %>, then click the "Run" button to start the pipeline.

<%= content_for :pi_input_form %> - <%= form_tag @object, :method => :put do |f| %> - <%= hidden_field @object.class.to_s.underscore.singularize.to_sym, :state, :value => 'RunningOnServer' %> - <%= button_tag({class: 'btn btn-primary run-pipeline-button'}) do %> - Run - <% end %> + <%= link_to(url_for('pipeline_instance[state]' => 'RunningOnServer'), + class: 'btn btn-primary run-pipeline-button', + method: :patch + ) do %> + Run <% end %> <% end %>
-

For a full list of pipeline components and parameters, click the "Components" tab above.

+

Click the "Components" tab above to see a full list of pipeline settings.