%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2009 %> <% button_id = "button_close_#{@member_job.id}" form_id = "edit_job_#{@member_job.id}" @title_section = t('.dialog_title') @title_section = @title_section + ' ' + t('common.view_only_mode') if @view_only @title_item = h @member_job.name @help_link_anchor = HELP_URL_CONFIG['member_jobs']['settings'] if @editing_view.nil? || !@editing_view url = member_job_path(@member_job.id) generalPath = edit_member_job_path(@member_job.id, :page => 'general') detailPath = edit_member_job_path(@member_job.id, :page => 'detail') commandsPath = edit_member_job_path(@member_job.id, :page => 'commands') privateCommandPath = edit_member_job_path(@member_job.id, :format => :json, :list => 'commands', :command_set_type =>CommandSet::PRIVATE) privateIbmiCommandPath = edit_member_job_path(@member_job.id, :format => :json, :list => 'commands', :command_set_type =>CommandSet::PRIVATE_IBMI) agentEnvironmentPath = edit_member_job_path(@member_job.id, :page => 'agent_environment') getPrivateAgentEnvironmentPath = edit_member_job_path(@member_job.id, :format => :json, :list => 'agent_environment') conditionsJobPath = edit_member_job_path(@member_job.id, :page => 'conditions') allListPath = edit_member_job_path(@member_job.id, :format => :json, :list => 'all') joblogPath = edit_member_job_path(@member_job.id, :page => 'joblog') else url = job_editing_job_suite_editing_member_job_url(:job_id => job_id, :editing_job_suite_id => editing_job_suite_id, :id => @member_job.id) generalPath = edit_job_editing_job_suite_editing_member_job_path(job_id, editing_job_suite_id, @member_job.id, :page => 'general') detailPath = edit_job_editing_job_suite_editing_member_job_path(job_id, editing_job_suite_id, @member_job.id, :page => 'detail') commandsPath = edit_job_editing_job_suite_editing_member_job_path(job_id, editing_job_suite_id, @member_job.id, :page => 'commands') privateCommandPath = edit_job_editing_job_suite_editing_member_job_path(job_id, editing_job_suite_id, @member_job.id, :format => :json, :list => 'commands', :command_set_type =>CommandSet::PRIVATE) privateIbmiCommandPath = edit_job_editing_job_suite_editing_member_job_path(job_id, editing_job_suite_id, @member_job.id, :format => :json, :list => 'commands', :command_set_type =>CommandSet::PRIVATE_IBMI) agentEnvironmentPath = edit_job_editing_job_suite_editing_member_job_path(job_id, editing_job_suite_id, @member_job.id, :page => 'agent_environment') getPrivateAgentEnvironmentPath = edit_job_editing_job_suite_editing_member_job_path(job_id, editing_job_suite_id, @member_job.id, :format => :json, :list => 'agent_environment') conditionsJobPath = edit_job_editing_job_suite_editing_member_job_path(job_id, editing_job_suite_id, @member_job.id, :page => 'conditions') allListPath = edit_job_editing_job_suite_editing_member_job_path(job_id, editing_job_suite_id, @member_job.id, :format => :json, :list => 'all') joblogPath = edit_job_editing_job_suite_editing_member_job_path(job_id, editing_job_suite_id, @member_job.id, :page => 'joblog') end %> <% form_for(@member_job, :url => url, :html => { :id => form_id, :class => "edit_job", :autocomplete => "off", :onsubmit => "try {helpsys.CntMgr.getController('#{form_id}').submitForm();} catch(e) {console.log(e);};return false;"}) do |form| %> <% render( :layout => 'shared/edit_section', :locals => { :section_id => "job-general", :section_title => t('common.general_title')}) do %>
<%= t_label('common.name') %>
<%= h @member_job.name %>
<%= t_label('common.description') %>
<%= h @member_job.description %>
<%= t_label('common.agent_or_group') %>
<% if @member_job.target_type == AgentGroup.to_s && !@member_job.target.nil? %> <% if @member_job.target.group_utilization? %> <% elsif @member_job.target.group_preferred? %> <% else %> <% end %> <% else %> <% end %> <%= h @member_job.target.name unless @member_job.target.nil? %>
<%= t_label("common.queue") %>
<%= h @member_job.job_queue_name %>
<%= t_label("job.default_priority") %>
<%= h @member_job.default_priority %>
<%= t_label('common.tags') %>
<%= h @member_job.tag_list %>
<%= t_label('jobs.edit_ibmi_agent_environment.ibmi_environment') %>
<%= h @member_job.agent_environment.name %>
<%= t_label("jobs.edit_ibmi_agent_environment.ibmi_job_name") %>
<%= h @member_job.ibmi_job_name %>
<%= t_label("jobs.edit_agent_environment.shared_environment_label") %>
<%= h @member_job.agent_environment.name %>
<%= t_label("jobs.edit_agent_environment.shared_environment_label") %>
<%= h @member_job.agent_environment.referenced_shared.name %>
<%= t_label('agent_environments.edit_general.environment_type') %>
<%= t("agent_environments.edit_general.run_agent_heading") %>
<%= t_label("jobs.edit_agent_environment.user_label") %>
<% if !@member_job.agent_environment.nil? && (!@member_job.agent_environment.merged? || @member_job.agent_environment.user_profile != "*SHARED") %><%= h @member_job.agent_environment.user_profile %>
<% elsif !@member_job.agent_environment.nil? && @member_job.agent_environment.merged? && !current_user.has_exclude_authority_to?(:AgentEnvironment, @member_job.agent_environment.referenced_shared_id) %><%= h @member_job.agent_environment.referenced_shared.user_profile %>
<% else %> <% end %><%= t_label("jobs.edit_agent_environment.working_path_label") %>
<% if !@member_job.agent_environment.nil? && (!@member_job.agent_environment.merged? || @member_job.agent_environment.working_path != "*SHARED") %><%= h @member_job.agent_environment.working_path %>
<% elsif !@member_job.agent_environment.nil? && @member_job.agent_environment.merged? && !current_user.has_exclude_authority_to?(:AgentEnvironment, @member_job.agent_environment.referenced_shared_id) %><%= h @member_job.agent_environment.referenced_shared.working_path %>
<% else %> <% end %><%= t_label("jobs.agent_environment.agent_environment_variables") %>
<%= t('jobs.agent_environment_variable_count', :count => @environment_variable_count) %>
<%= t_label('common.ibmi_command_set') %>
<% else %><%= t_label('common.command_set') %>
<% end %> <% if !@member_job.command_set.nil? %> <% if @member_job.command_set.shared? %><%= h @member_job.command_set.name %>
<% elsif @member_job.command_set.commands.length == 1 %><%= t('jobs.job.command', :count => @member_job.command_set.commands.length) %>
<% else %><%= t('jobs.job.commands', :count => @member_job.command_set.commands.length) %>
<% end %> <% end %><%= t('jobs.job.job_log_not_saved') %>
<%= t('jobs.job.job_log_saved') %>