%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2011 %> <% form_id = "where_used_date_object_#{@date_object.id}" button_id = "button_close_#{@date_object.id}" @title_section = t('common.new_where_used_title', :type => t('common.date_object')) @title_section = @title_section + ' ' + t('common.view_only_mode') if @view_only @title_item = h @date_object.name @help_link_anchor = HELP_URL_CONFIG['scheduling_objects']['date_lists']['where_used'] %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-jobs", :section_title => t(".jobs")}) do job_date_objects = @date_object.jobs.count + @date_object.job_reactivity_date_objects_count %> <%= t('date_objects.whereused.assigned_jobs_text', :count => job_date_objects) if job_date_objects > 1 || job_date_objects == 0 %> <%= t('date_objects.whereused.assigned_job_text', :count => job_date_objects) if job_date_objects == 1 %> <% end %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-job-suites", :section_title => t(".job_suites")}) do job_suite_date_objects = @date_object.job_suites.count + @date_object.job_suite_reactivity_date_objects_count %> <%= t('date_objects.whereused.assigned_job_suites_text', :count => job_suite_date_objects) if job_suite_date_objects > 1 || job_suite_date_objects == 0 %> <%= t('date_objects.whereused.assigned_job_suite_text', :count => job_suite_date_objects) if job_suite_date_objects == 1 %> <% end %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-special-instances", :section_title => t(".special_instances")}) do %> <%= t('date_objects.whereused.assigned_special_instances_text', :count => @date_object.special_instances.count) if @date_object.special_instances.count > 1 || @date_object.special_instances.count == 0 %> <%= t('date_objects.whereused.assigned_special_instance_text', :count => @date_object.special_instances.count) if @date_object.special_instances.count == 1 %> <% end %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-forecast-schedules", :section_title => t(".forecast_schedules")}) do %> <%= t('date_objects.whereused.assigned_forecast_schedules_text', :count => @date_object.job_forecast_schedules_count) if @date_object.job_forecast_schedules_count > 1 || @date_object.job_forecast_schedules_count == 0 %> <%= t('date_objects.whereused.assigned_forecast_schedule_text', :count => @date_object.job_forecast_schedules_count) if @date_object.job_forecast_schedules_count == 1 %> <% end %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-job-suite-forecast-schedules", :section_title => t(".job_suite_forecast_schedules")}) do %> <%= t('date_objects.whereused.assigned_job_suite_forecast_schedules_text', :count => @date_object.job_suite_forecast_schedules_count) if @date_object.job_suite_forecast_schedules_count > 1 || @date_object.job_suite_forecast_schedules_count == 0 %> <%= t('date_objects.whereused.assigned_job_suite_forecast_schedule_text', :count => @date_object.job_suite_forecast_schedules_count) if @date_object.job_suite_forecast_schedules_count == 1 %> <% end %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-switch-date-object", :section_title => t(".switch_section")}) do %> <%= t('date_objects.whereused.switch_section_preview') %> <% end %>