<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2009 %> <% button_id = "button_close_#{@snmp_trap_monitor.id}" form_id = "new_snmp_trap_monitor" @title = t('snmp_trap_monitors.snmp_trap_monitor.dialog_title') @title_section = t('snmp_trap_monitors.snmp_trap_monitor.dialog_title') @title_item = t('common.new_caption') @help_link_anchor = HELP_URL_CONFIG['scheduling_objects']['snmp_trap_monitors']['snmp_trap_monitor_settings'] %> <% form_for @snmp_trap_monitor, :html => { :id => form_id, :class => "edit_snmp_trap_monitor", :autocomplete => "off", :onsubmit => "try {helpsys.CntMgr.getController('#{form_id}').submitForm();} catch(e) {console.log(e);};return false;"} do |form| %> <% if @copyRecord %> <% @source_snmp_trap_monitor.special_instances.each_with_index do |special_instance, idx| %> <%= hidden_field_tag "snmp_trap_monitor[special_instances_attributes][#{idx}][date_object_id]", special_instance.date_object_id %> <%= hidden_field_tag "snmp_trap_monitor[special_instances_attributes][#{idx}][description]", special_instance.description %> <%= hidden_field_tag "snmp_trap_monitor[special_instances_attributes][#{idx}][instance_type]", special_instance.instance_type %> <%= hidden_field_tag "snmp_trap_monitor[special_instances_attributes][#{idx}][name]", special_instance.name %> <%= hidden_field_tag "snmp_trap_monitor[special_instances_attributes][#{idx}][scheduled_after]", special_instance.scheduled_after %> <%= hidden_field_tag "snmp_trap_monitor[special_instances_attributes][#{idx}][scheduled_before]", special_instance.scheduled_before %> <%= hidden_field_tag "snmp_trap_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 "snmp_trap_monitor[special_instances_attributes][#{idx}][special_instance_days_attributes][#{idx2}][scheduled_after]", copy_special_instance_day.scheduled_after %> <%= hidden_field_tag "snmp_trap_monitor[special_instances_attributes][#{idx}][special_instance_days_attributes][#{idx2}][scheduled_before]", copy_special_instance_day.scheduled_before %> <%= hidden_field_tag "snmp_trap_monitor[special_instances_attributes][#{idx}][special_instance_days_attributes][#{idx2}][runcode_mon]", copy_special_instance_day.runcode_mon %> <%= hidden_field_tag "snmp_trap_monitor[special_instances_attributes][#{idx}][special_instance_days_attributes][#{idx2}][runcode_tue]", copy_special_instance_day.runcode_tue %> <%= hidden_field_tag "snmp_trap_monitor[special_instances_attributes][#{idx}][special_instance_days_attributes][#{idx2}][runcode_wed]", copy_special_instance_day.runcode_wed %> <%= hidden_field_tag "snmp_trap_monitor[special_instances_attributes][#{idx}][special_instance_days_attributes][#{idx2}][runcode_thu]", copy_special_instance_day.runcode_thu %> <%= hidden_field_tag "snmp_trap_monitor[special_instances_attributes][#{idx}][special_instance_days_attributes][#{idx2}][runcode_fri]", copy_special_instance_day.runcode_fri %> <%= hidden_field_tag "snmp_trap_monitor[special_instances_attributes][#{idx}][special_instance_days_attributes][#{idx2}][runcode_sat]", copy_special_instance_day.runcode_sat %> <%= hidden_field_tag "snmp_trap_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 => "snmp-trap-monitor-general", :section_title => t('common.general_title'), :details_only => true}) %> <%= render( :partial => "edit_criteria", :layout => 'shared/edit_section', :locals => { :section_id => "snmp-trap-monitor-criteria", :section_title => t('snmp_trap_monitors.snmp_trap_monitor.filter_criteria_list'), :details_only => true}) %>
<%= standard_buttons(button_id) %>
<% end %>