<% type_is_job = job.class == Job locale_path = type_is_job ? 'jobs.confirm_send_status.' : 'job_suites.confirm_send_status.' js_controller_name = (type_is_job or params[:call_referer] == 'jfg') ? 'job-index' : (params[:member_job] and 'job-suite-member-jobs' or 'job-suite-index') btn_id, dialog_id = "button_send_status_#{job.id}", 'job_confirm_send_status' %> <% fields_for job do |fields| %>
get_job_status) %>" buttons="[{ text: '<%= t("#{locale_path}send_status") %>', handler: helpsys.sendJobStatus, id: '<%= btn_id %>' }, { text: '<%= t('common.cancel') %>', handler: ActiveDialog.hideDialog }]" height="190" minHeight="190" minWidth="530" width="530" layout="border" stateId="job_send_status" cls="popup-window">
<%= t("#{locale_path}confirm_send_status_message", :status => get_job_status) %>
<%= hidden_field_tag 'job_id', job.id %> <%= hidden_field_tag 'send_status', get_job_status_message %> <%= hidden_field_tag 'monitor_status', for_event_monitor? %> <%= hidden_field_tag('job_suite_member_job', params[:member_job]) if params[:member_job] %> <% if job.target_type == 'AgentGroup' %>
<%= t("#{locale_path}run_on") %> <% if job.target.target.group_type == AgentGroup::ALL_AGENTS %>

<% else %>

<% if (default_agent = AgentGroup::get_first_agent(job.target.target)) %> <%= fields.hidden_field :default_agent_id, :disabled => true, :value => default_agent.id %> <%= fields.hidden_field :default_agent_name, :disabled => true, :value => default_agent.name %> <% end %>
<% end %>
<% end %>
<% end %>