<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2009 %> <% fields_for @job_suite do |form| purge_option = (@job_suite.job_history_purge_option == SystemSetting::PURGE_BY_RUNS || @job_suite.job_history_purge_option == SystemSetting::PURGE_BY_DAYS) ? @job_suite.job_history_purge_option : SystemSetting::PURGE_BY_RUNS %>
<%= form.check_box :system_defaults_for_job_history_purge, :disabled => @view_only %>

<%= t('job_suites.control.use_system_setting_defaults') %>

<%= check_box :job_suite, :job_history_purge, :disabled => @view_only, :class => "" %>

<%= t('job_suites.control.remove_older_job_history_runs') %>

<%= form.text_field :job_history_runs_to_keep, :disabled => @view_only || @job_suite.system_defaults_for_job_history_purge, :class => "x-form-field name-field" %>

<%= t('job_suites.control.job_history_runs_to_keep_caption') %>

<%= form.text_field :job_history_days_to_keep, :disabled => @view_only || @job_suite.system_defaults_for_job_history_purge, :class => "x-form-field name-field" %>

<%= t 'job_suites.control.job_history_days_to_keep_caption' %>

<% end %>