<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2009 %> <% button_id = "button_close_#{@agent_environment.id}" form_id = @agent_environment.new_record? ? "new_agent_environment" : "edit_agent_environment_#{@agent_environment.id}" dialog_id = "edit_#{@agent_environment.id}" url = @agent_environment.new_record? ? agent_environments_path : agent_environment_path view_only = (@view_only) @title_section = t('.dialog_title') @title_section = @title_section + ' ' + t('common.view_only_mode') if @view_only @title_item = h @agent_environment.name @help_link_anchor = HELP_URL_CONFIG['scheduling_objects']['agent_environments']['agent_environment_settings'] %> <% form_for @agent_environment, :html => { :id => form_id, :class => "edit_agent_environment", :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 => "agent-environment-general", :section_title => t('common.general_title')}) do %>

<%= t_label('common.name') %>

<%= h @agent_environment.name %>

<%= t_label('common.description') %>

<%= h @agent_environment.description %>

<%= t_label('common.tags') %>

<%= h @agent_environment.tag_list %>

<% if @agent_environment.run_type_option == AgentEnvironment::RUN_TYPE_AGENT %>

<%= t_label('agent_environments.edit_general.environment_type') %>

<%= t("agent_environments.edit_general.run_agent_heading") %>

<% else %>

<%= t_label('agent_environments.user_profile') %>

<%= h @agent_environment.user_profile %>

<% end %>

<%= t_label('agent_environments.working_path') %>

<%= h @agent_environment.working_path %>

<% end %> <% render(:layout => 'shared/edit_section', :locals => { :section_id => "agent-environment-variables", :section_title => t('agent_environments.agent_environment_variables')}) do %>

<%= t('agent_environments.agent_environment_variables')%>

<% end %>
<%= standard_buttons(button_id) %>
<% end %>