<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2010 %> <% disabled_string = 'ctldisabled="true"' if @view_only %> <% fields_for @system_setting do |form| %>
<%= form.label :time_to_run_history_purge, t_label("system_settings.time_of_day_to_purge"), :class => "time-of-day-to-purge-label item-label" %>
name="system_setting[time_to_run_history_purge]" value="<%= int_to_iso_time @system_setting.time_to_run_history_purge %>">

<%= t('.time_of_day_caption') %>

<%= t "system_settings.agent_event_purge_label" %>
<%= form.label :agent_event_auto_purge, t_label("common.Enabled"), :class => "agent-event-auto-purge-label item-label" %>
<%= form.check_box :agent_event_auto_purge, :disabled => @view_only %>
<%= form.label :agent_event_days_to_keep, t_label("common.days_to_keep"), :class => "agent-event-days-to-keep-label item-label" %>
<%= form.spinner :agent_event_days_to_keep, :minValue => 1, :maxValue => 4000, :disabled => @view_only, :class => "agent-event-days-to-keep-field" %>

<%= t('.sched_log_days_to_keep_caption') %>

<%= t "system_settings.audit_purge_label" %>
<%= form.label :audit_auto_purge, t_label("common.Enabled"), :class => "audit-auto-purge-label item-label" %>
<%= form.check_box :audit_auto_purge, :disabled => @view_only %>
<%= form.label :audit_days_to_keep, t_label("common.days_to_keep"), :class => "auditt-days-to-keep-label item-label" %>
<%= form.spinner :audit_days_to_keep, :minValue => 1, :maxValue => 4000, :disabled => @view_only, :class => "agent-event-days-to-keep-field" %>

<%= t('.sched_log_days_to_keep_caption') %>

<%= t "system_settings.automatic_purge_label" %>
<%= form.label :job_history_auto_purge, t_label('common.Enabled'), :class => "job-history-auto-purge-label item-label" %>
<%= form.check_box :job_history_auto_purge, :disabled => @view_only %>

<%= t 'system_settings.job_history_purge_caption' %>

<%= form.label :job_history_days_to_keep_orphans, t_label('system_settings.days_to_keep_orphaned'), :class => "job-monitor-days-to-keep-label item-label" %>
<%= form.spinner :job_history_days_to_keep_orphans, :minValue => 1, :maxValue => 4000, :disabled => @view_only, :class => "job-monitor-days-to-keep-field" %>

<%= t('.job_history_days_to_keep_caption') %>

<%= t "system_settings.job_monitor_purge_label" %>
<%= form.label :job_monitor_auto_purge, t_label('common.Enabled'), :class => "job-monitor-auto-purge-label item-label" %>
<%= form.check_box :job_monitor_auto_purge, :disabled => @view_only %>
<%= form.label :job_monitor_days_to_keep, t_label('common.days_to_keep'), :class => "job-monitor-days-to-keep-label item-label" %>
<%= form.spinner :job_monitor_days_to_keep, :minValue => 1, :maxValue => 4000, :disabled => @view_only, :class => "job-monitor-days-to-keep-field" %>

<%= t('.sched_log_days_to_keep_caption') %>

<%= t "system_settings.remote_history_purge_label" %>
<%= form.label :remote_history_auto_purge, t_label('common.Enabled'), :class => "schedule-log-auto-purge-label item-label" %>
<%= form.check_box :remote_history_auto_purge, :disabled => @view_only %>
<%= form.label :remote_history_days_to_keep, t_label('common.days_to_keep'), :class => "schedule-log-days-to-keep-label item-label" %>
<%= form.spinner :remote_history_days_to_keep, :minValue => 1, :maxValue => 4000, :disabled => @view_only, :class => "schedule-log-days-to-keep-field" %>

<%= t('.sched_log_days_to_keep_caption') %>

<%= t "system_settings.schedule_log_purge" %>
<%= form.label :schedule_log_auto_purge, t_label('common.Enabled'), :class => "schedule-log-auto-purge-label item-label" %>
<%= form.check_box :schedule_log_auto_purge, :disabled => @view_only %>
<%= form.label :schedule_log_days_to_keep, t_label('common.days_to_keep'), :class => "schedule-log-days-to-keep-label item-label" %>
<%= form.spinner :schedule_log_days_to_keep, :minValue => 1, :maxValue => 4000, :disabled => @view_only, :class => "schedule-log-days-to-keep-field" %>

<%= t('.sched_log_days_to_keep_caption') %>

<%= t "system_settings.snmp_log_purge" %>
<%= form.label :snmp_trap_auto_purge, t_label('common.Enabled'), :class => "snmp-trap-auto-purge-label item-label" %>
<%= form.check_box :snmp_trap_auto_purge, :disabled => @view_only %>
<%= form.label :snmp_trap_days_to_keep, t_label('common.days_to_keep'), :class => "snmp-trap-days-to-keep-label item-label" %>
<%= form.spinner :snmp_trap_days_to_keep, :minValue => 1, :maxValue => 4000, :disabled => @view_only, :class => "snmp-trap-days-to-keep-field" %>

<%= t('.sched_log_days_to_keep_caption') %>

<%= t "system_settings.system_message_label" %>
<%= form.label :system_message_auto_purge, t_label('common.Enabled'), :class => "system-message-auto-purge-label item-label" %>
<%= form.check_box :system_message_auto_purge, :disabled => @view_only %>
<%= form.label :system_message_days_to_keep, t_label('common.days_to_keep'), :class => "system-message-days-to-keep-label item-label" %>
<%= form.spinner :system_message_days_to_keep, :minValue => 1, :maxValue => 4000, :disabled => @view_only, :class => "system-message-days-to-keep-field" %>

<%= t('.sched_log_days_to_keep_caption') %>

<%= t "system_settings.sap_intercepted_job_history_purge_label" %>
<%= form.label :sap_intercepted_job_history_auto_purge, t_label('common.Enabled'), :class => "system-message-auto-purge-label item-label" %>
<%= form.check_box :sap_intercepted_job_history_auto_purge, :disabled => @view_only %>
<%= form.label :sap_intercepted_job_history_days_to_keep, t_label('common.days_to_keep'), :class => "system-message-days-to-keep-label item-label" %>
<%= form.spinner :sap_intercepted_job_history_days_to_keep, :minValue => 1, :maxValue => 4000, :disabled => @view_only, :class => "system-message-days-to-keep-field" %>

<%= t('.sched_log_days_to_keep_caption') %>

<% end %>