<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2009 %> <% fields_for @member_job do |fields| %>
<%= fields.label :name, t_label('common.name'), :class => "name-label item-label" %>
<%= fields.text_field :name, :disabled => @view_only, :maxLength => 50, :class => "x-form-field name-field" %>

<%= t('common.name_caption') %>

<%= fields.label :description, t_label('common.description'), :class => "description-label item-label" %>
<%= fields.text_area :description, :disabled => @view_only, :maxLength => 256, :class => "x-form-field description-field", :style => "overflow:auto;height:64px;" %>

<%= t('common.description_caption') %>

<%= t('common.agent_or_group') %> <%= fields.hidden_field :target_id, :disabled => true %> <%= fields.hidden_field :target_type, :disabled => true %> <%= fields.hidden_field :job_queue_id, :disabled => true %> <%= fields.hidden_field :job_queue_name, :disabled => true %> <%= hidden_field_tag "job_queue_type", @member_job.get_job_queue_type %> <% if @member_job.target_type == 'AgentGroup' && !@member_job.target.nil?%> <% if @member_job.target.group_utilization? %> <%= hidden_field_tag "job_target_group_type_style", AgentGroup::STYLE_UTILIZATION_BALANCED %> <% elsif @member_job.target.group_preferred? %> <%= hidden_field_tag "job_target_group_type_style", AgentGroup::STYLE_PREFERRED_AGENT %> <% else %> <%= hidden_field_tag "job_target_group_type_style", AgentGroup::STYLE_ALL_AGENTS %> <% end %> <% end %> <% fields.fields_for :target do |agent_fields| %> <%= agent_fields.hidden_field :name, :disabled => true %> <% end %>

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

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

<%= fields.text_field :default_priority, :disabled => @view_only, :class => "x-form-field name-field" %>

<%= t('job.default_priority_caption') %>

<%= fields.label :tag, t_label('common.tags'), :class => "x-form-item label" %>
<%= tags_form_helper(fields, "member_job[tag_list]", @member_job.tag_list, {:view_only => @view_only}) %>
<% end %>