<%# (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 %>
<%= form.label :run_type_option, t_label('.environment_type'), :class => "shared-environment-label item-label" %>

<%= t ".environment_type_caption" %>

<%= fields.label :name, t_label("common.agent_environment"), :class => "shared-environment-label item-label" %>
<%= fields.text_field :name %>

<%= t ".shared_environment_caption" %>

<%= fields.label :shared_user_profile, t_label(".user_label"), :class => "user-label item-label" %>
<%= fields.label :user_profile, t_label(".user_label"), :class => "user-label item-label" %>

<%= t ".user_caption" %>

<%= fields.label :password, t_label(".password"), :class => "password-label item-label" %>

<%= t "agent_environments.password_caption" %>

<%= fields.label :confirm_password, t_label(".confirm_password"), :class => "confirm-password-label item-label" %>

<%= t "agent_environments.confirm_password_caption" %>

<%= form.label :ibmi_environment, t_label('jobs.edit_ibmi_agent_environment.ibmi_environment'), :class => "item-label" %>

<%= t "jobs.edit_ibmi_agent_environment.ibmi_environment_caption" %>

<%= fields.label :ibmi_job_name, t_label("jobs.edit_ibmi_agent_environment.ibmi_job_name"), :class => "item-label" %>

<%= t "jobs.edit_ibmi_agent_environment.ibmi_job_name_caption" %>

<%= fields.label :working_path, t_label(".working_path_label"), :class => "working-path-label item-label" %>

<%= t "agent_environments.working_path_caption" %>

<%=t_label "jobs.agent_environment.agent_environment_variables" %>

<%= t('jobs.agent_environment.grid_caption') %>

<%#*%> <% end %> <% end %>