<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2013 %> <% fields_for @remote_dependency do |fields| %> <% if @remote_dependency.new_record? %>
<%= fields.label :prereq_object_type, t_label('.type'), :class => "x-form-item item-label" %>
<%= fields.select :prereq_object_type, RemoteDependency.PREREQ_OBJECT_TYPE_ARRAY, {}, {:id => "prereq_object_type", :disabled => @view_only} %>

<%= fields.label :prereq_object, t_label('.object'), :class => "x-form-item item-label" %>
<%= fields.hidden_field :prereq_object_id %>

<% else %>

<%= t_label('.type') %>

<%= h @remote_dependency.prereq_object_type.titleize %>

<%= t_label('.object') %>

<%= h ("#{@remote_dependency.prereq_object.name} (#{@remote_dependency.prereq_object.description})") %>

<% end if !@remote_server.nil? && @remote_server.server_type == RemoteServer::ROBOT_SCHEDULE_SERVER_TYPE %>
<%= fields.label :user_job_name, t_label('.user_job_name'), :class => "x-form-item item-label" %>
<%= text_field :remote_dependency, :user_job_name, :disabled => @view_only, :maxLength => 10, :class => "x-form-field name-field", :style => "text-transform: uppercase" %>

<%= t('.user_job_name_caption') %>

<% end %> <% end %>