%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2013 %> <% button_id = "button_close_#{@remote_dependency.id}" form_id = @remote_dependency.new_record? ? "new_remote_dependency" : "edit_remote_dependency_#{@remote_dependency.id}" dialog_id = "edit_#{@remote_dependency.id}" url = @remote_dependency.new_record? ? remote_server_remote_dependencies_path : remote_server_remote_dependency_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 @remote_dependency.prereq_object.name @help_link_anchor = HELP_URL_CONFIG['scheduling_objects']['remote_servers']['remote_dependencies_settings'] %> <% form_for @remote_dependency, :url => remote_server_remote_dependency_path(@remote_dependency.remote_server_id, @remote_dependency.id ), :html => { :id => form_id, :class => "edit_remote_dependency", :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 => "remote-dependency-general", :section_title => t('common.general_title')}) do %>
<%= t_label('remote_dependencies.edit_general.type') %>
<%= h RemoteDependency::get_object_type(@remote_dependency.prereq_object_type) %>
<%= t_label('remote_dependencies.edit_general.object') %>
<%= h ("#{@remote_dependency.prereq_object.name} (#{@remote_dependency.prereq_object.description})") %>
<%= t_label('remote_dependencies.edit_general.user_job_name') %>
<%= h @remote_dependency.user_job_name %>