%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2009 %> <% button_id = "button_close_#{@agent_event_monitor.id}" form_id = "new_agent_event_monitor" @title = t('agent_event_monitors.agent_event_monitor.dialog_title') @title_section = t('agent_event_monitors.agent_event_monitor.dialog_title') @title_item = t('common.new_caption') @help_link_anchor = set_help_link %> <% form_for @agent_event_monitor, :html => { :id => form_id, :class => "edit_agent_event_monitor", :autocomplete => "off", :onsubmit => "try {helpsys.CntMgr.getController('#{form_id}').submitForm();} catch(e) {console.log(e);};return false;"} do |form| %> <% if @copyRecord %> <%= form.hidden_field :disabled, :value => @agent_event_monitor.disabled %> <% @source_agent_event_monitor.special_instances.each_with_index do |special_instance, idx| %> <%= hidden_field_tag "agent_event_monitor[special_instances_attributes][#{idx}][date_object_id]", special_instance.date_object_id %> <%= hidden_field_tag "agent_event_monitor[special_instances_attributes][#{idx}][description]", special_instance.description %> <%= hidden_field_tag "agent_event_monitor[special_instances_attributes][#{idx}][instance_type]", special_instance.instance_type %> <%= hidden_field_tag "agent_event_monitor[special_instances_attributes][#{idx}][name]", special_instance.name %> <%= hidden_field_tag "agent_event_monitor[special_instances_attributes][#{idx}][scheduled_after]", special_instance.scheduled_after %> <%= hidden_field_tag "agent_event_monitor[special_instances_attributes][#{idx}][scheduled_before]", special_instance.scheduled_before %> <%= hidden_field_tag "agent_event_monitor[special_instances_attributes][#{idx}][tag_list]", special_instance.tag_list %> <% special_instance.special_instance_days.each_with_index do |copy_special_instance_day, idx2| %> <%= hidden_field_tag "agent_event_monitor[special_instances_attributes][#{idx}][special_instance_days_attributes][#{idx2}][scheduled_after]", copy_special_instance_day.scheduled_after %> <%= hidden_field_tag "agent_event_monitor[special_instances_attributes][#{idx}][special_instance_days_attributes][#{idx2}][scheduled_before]", copy_special_instance_day.scheduled_before %> <%= hidden_field_tag "agent_event_monitor[special_instances_attributes][#{idx}][special_instance_days_attributes][#{idx2}][runcode_mon]", copy_special_instance_day.runcode_mon %> <%= hidden_field_tag "agent_event_monitor[special_instances_attributes][#{idx}][special_instance_days_attributes][#{idx2}][runcode_tue]", copy_special_instance_day.runcode_tue %> <%= hidden_field_tag "agent_event_monitor[special_instances_attributes][#{idx}][special_instance_days_attributes][#{idx2}][runcode_wed]", copy_special_instance_day.runcode_wed %> <%= hidden_field_tag "agent_event_monitor[special_instances_attributes][#{idx}][special_instance_days_attributes][#{idx2}][runcode_thu]", copy_special_instance_day.runcode_thu %> <%= hidden_field_tag "agent_event_monitor[special_instances_attributes][#{idx}][special_instance_days_attributes][#{idx2}][runcode_fri]", copy_special_instance_day.runcode_fri %> <%= hidden_field_tag "agent_event_monitor[special_instances_attributes][#{idx}][special_instance_days_attributes][#{idx2}][runcode_sat]", copy_special_instance_day.runcode_sat %> <%= hidden_field_tag "agent_event_monitor[special_instances_attributes][#{idx}][special_instance_days_attributes][#{idx2}][runcode_sun]", copy_special_instance_day.runcode_sun %> <% end %> <% end %> <% end %> <%= render( :partial => "edit_general", :layout => 'shared/edit_section', :locals => { :section_id => "agent-event-monitor-general", :section_title => t('common.general_title'), :details_only => true}) %> <%= render( :partial => "edit_cycle", :layout => 'shared/edit_section', :locals => { :section_id => "agent-event-monitor-cycle", :section_title => t('agent_event_monitors.agent_event_monitor.cycle_information_title'), :details_only => true}) %> <% if @agent_event_monitor.type_file? %> <%= render( :partial => "edit_file", :layout => 'shared/edit_section', :locals => { :section_id => "agent-event-monitor-file", :section_title => t('agent_event_monitors.agent_event_monitor.file_event_properties_title'), :details_only => true}) %> <% elsif @agent_event_monitor.type_directory? %> <%= render( :partial => "edit_file", :layout => 'shared/edit_section', :locals => { :section_id => "agent-event-monitor-directory", :section_title => t('agent_event_monitors.agent_event_monitor.directory_event_properties_title'), :details_only => true}) %> <% elsif @agent_event_monitor.type_process? %> <%= render( :partial => "edit_process", :layout => 'shared/edit_section', :locals => { :section_id => "agent-event-monitor-process", :section_title => t('agent_event_monitors.agent_event_monitor.process_event_properties_title'), :details_only => true}) %> <% end %>