%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2009 %> <% button_id = "button_close_#{@job.id}" form_id = "job_monitor_events_#{@job.id}" save_text = t('common.save') if @job.job_type == MemberJob::JOB_TYPE if @editing_view.nil? || !@editing_view url = member_job_path(@job.id) parent_type = "member_job" overrunMonitorPath = edit_member_job_path(@job.id, :page => 'overrun_monitor') underrunMonitorPath = edit_member_job_path(@job.id, :page => 'underrun_monitor') lateStartMonitorPath = edit_member_job_path(@job.id, :page => 'late_start_monitor') assignedLateStartUsersPath = edit_member_job_path(@job.id, :format => :json, :list => 'late_start_users') assignedOverrunUsersPath = edit_member_job_path(@job.id, :format => :json, :list => 'overrun_users') assignedUnderrunUsersPath = edit_member_job_path(@job.id, :format => :json, :list => 'underrun_users') else url = job_editing_job_suite_editing_member_job_path(:job_id => job_id, :editing_job_suite_id => editing_job_suite_id, :id => @job.id) parent_type = "member_job" overrunMonitorPath = edit_job_editing_job_suite_editing_member_job_path(:job_id => job_id, :editing_job_suite_id => editing_job_suite_id, :id => @job.id, :page => 'overrun_monitor') underrunMonitorPath = edit_job_editing_job_suite_editing_member_job_path(:job_id => job_id, :editing_job_suite_id => editing_job_suite_id, :id => @job.id, :page => 'underrun_monitor') lateStartMonitorPath = edit_job_editing_job_suite_editing_member_job_path(:job_id => job_id, :editing_job_suite_id => editing_job_suite_id, :id => @job.id, :page => 'late_start_monitor') assignedLateStartUsersPath = edit_job_editing_job_suite_editing_member_job_path(:job_id => job_id, :editing_job_suite_id => editing_job_suite_id, :id => @job.id, :format => :json, :list => 'late_start_users') assignedOverrunUsersPath = edit_job_editing_job_suite_editing_member_job_path(:job_id => job_id, :editing_job_suite_id => editing_job_suite_id, :id => @job.id, :format => :json, :list => 'overrun_users') assignedUnderrunUsersPath = edit_job_editing_job_suite_editing_member_job_path(:job_id => job_id, :editing_job_suite_id => editing_job_suite_id, :id => @job.id, :format => :json, :list => 'underrun_users') save_text = t('common.Ok') end elsif @job.job_type == JobSuite::JOB_TYPE url = job_suite_path(@job.id) parent_type = "job_suite" overrunMonitorPath = edit_job_suite_path(@job.id, :page => 'overrun_monitor') underrunMonitorPath = edit_job_suite_path(@job.id, :page => 'underrun_monitor') lateStartMonitorPath = edit_job_suite_path(@job.id, :page => 'late_start_monitor') assignedLateStartUsersPath = edit_job_suite_path(@job.id, :format => :json, :list => 'late_start_users') assignedOverrunUsersPath = edit_job_suite_path(@job.id, :format => :json, :list => 'overrun_users') assignedUnderrunUsersPath = edit_job_suite_path(@job.id, :format => :json, :list => 'underrun_users') else url = job_path(@job.id) parent_type = "job" overrunMonitorPath = edit_job_path(@job.id, :page => 'overrun_monitor') underrunMonitorPath = edit_job_path(@job.id, :page => 'underrun_monitor') lateStartMonitorPath = edit_job_path(@job.id, :page => 'late_start_monitor') assignedLateStartUsersPath = edit_job_path(@job.id, :format => :json, :list => 'late_start_users') assignedOverrunUsersPath = edit_job_path(@job.id, :format => :json, :list => 'overrun_users') assignedUnderrunUsersPath = edit_job_path(@job.id, :format => :json, :list => 'underrun_users') end @title_section = t(".title", :object => t("common.#{parent_type}")) @title_section += ' ' + t('common.view_only_mode') if @view_only @title_item = @job.name @help_link_anchor = HELP_URL_CONFIG['jobs']['job_monitors'] %> <% form_for(@job, :url => url, :html => { :id => form_id, :class => "edit_job", :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 => "job-general", :section_title => t("#{parent_type}s.job_monitor_events.job_settings"), :summary_only => true}) do %>
<%= t_label("#{parent_type}s.#{parent_type}.timezone_option") %>
<%= h @job.timezone_type_text %>
<%= " #{t("#{parent_type}s.edit_overrun_monitor.maximum_duration_label")} #{get_hours_and_minutes_string(@job.overrun_hours, @job.overrun_minutes)}" %>
<%= " #{t("#{parent_type}s.edit_overrun_monitor.must_complete_by_label")} #{int_to_time @job.overrun_completion_time}" %>
<%= " #{t('common.snmp_notification')}" %>
<%= " #{t('common.email_notification_list', :notification_list => @job.overrun_notification_list.name) } " %>
<%= " #{t('common.advanced_options_specified')} " unless (@job.email_subject_overrun.blank? && @job.email_body_overrun.blank?) %>
<%= " #{t('common.email_notification', :user => formatted_list_of_usernames(@job.overrun_user_names)) } " %>
<%= " #{t('common.advanced_options_specified')} " unless (@job.email_subject_overrun.blank? && @job.email_body_overrun.blank?) %>
<%= " #{t("#{parent_type}s.job_monitors.end_the_job")}" %>
Not monitored.
<%= " #{t("#{parent_type}s.edit_underrun_monitor.minimum_duration_label")} #{get_hours_and_minutes_string(@job.underrun_hours, @job.underrun_minutes)}" %>
<%= " #{t('common.snmp_notification')}" %>
<%= " #{t('common.email_notification_list', :notification_list => @job.underrun_notification_list.name) } " %>
<%= " #{t('common.advanced_options_specified')} " unless (@job.email_subject_underrun.blank? && @job.email_body_underrun.blank?) %>
<%= " #{t('common.email_notification', :user => formatted_list_of_usernames(@job.underrun_user_names)) } " %>
<%= " #{t('common.advanced_options_specified')} " unless (@job.email_subject_underrun.blank? && @job.email_body_underrun.blank?) %>
Not monitored.
<%= " #{t("#{parent_type}s.edit_late_start_monitor.later_than_scheduled_by_label")} #{get_hours_and_minutes_string(@job.late_start_hours, @job.late_start_minutes)}" %>
<%= " #{t("#{parent_type}s.edit_late_start_monitor.must_start_by_label")} #{int_to_time @job.late_start_start_time}" %>
<%= " #{t('common.snmp_notification')}" %>
<%= " #{t('common.email_notification_list', :notification_list => @job.late_start_notification_list.name) } " %>
<%= " #{t('common.advanced_options_specified')} " unless (@job.email_subject_latestart.blank? && @job.email_body_latestart.blank?) %>
<%= " #{t('common.email_notification', :user => formatted_list_of_usernames(@job.late_start_user_names)) } " %>
<%= " #{t('common.advanced_options_specified')} " unless (@job.email_subject_latestart.blank? && @job.email_body_latestart.blank?) %>
<%= " #{t("#{parent_type}s.job_monitors.end_the_job_from_jobq")}" %>
Not monitored.