%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2009 %> <% fields_for @job do |form| %> <% form.fields_for :agent_environment do |fields| %> <%= fields.hidden_field :id %> <% if @job.agent_environment_type == "AgentEnvironment" %> <%= fields.hidden_field :environment_type %> <%= fields.hidden_field :referenced_shared_id %> <% if @job.agent_environment.environment_type == AgentEnvironment::TYPE_SHARED %> <%= hidden_field_tag 'original_run_type', AgentEnvironment::RUN_TYPE_SHARED %> <% else %> <%= hidden_field_tag 'environment_type', AgentEnvironment::RUN_TYPE_SHARED %> <%= hidden_field_tag 'original_run_type', @job.agent_environment.run_type_option %> <% end %> <% elsif @job.agent_environment_type == "IbmiAgentEnvironment" %> <%= hidden_field_tag 'original_run_type', IbmiAgentEnvironment::RUN_TYPE %> <%= hidden_field_tag 'ibmi_job_name', @job.ibmi_job_name %> <% end %>
<%=t_label "jobs.agent_environment.agent_environment_variables" %>