%
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' %>
<% end %>
<% end %>