<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2011 %> <% form_id = "where_used_calendar_#{@calendar.id}" button_id = "button_close_#{@calendar.id}" @title_section = t('common.new_where_used_title', :type => t('common.calendar')) @title_section = @title_section + ' ' + t('common.view_only_mode') if @view_only @title_item = h @calendar.name @help_link_anchor = HELP_URL_CONFIG['scheduling_objects']['calendar_objects']['where_used'] %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-jobs", :section_title => t(".jobs")}) do %> <%= t('calendars.whereused.assigned_jobs_text', :count => @calendar.jobs.count) if @calendar.jobs.count > 1 || @calendar.jobs.count == 0 %> <%= t('calendars.whereused.assigned_job_text', :count => @calendar.jobs.count) if @calendar.jobs.count == 1 %> <% end %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-job-suites", :section_title => t(".job_suites")}) do %> <%= t('calendars.whereused.assigned_job_suites_text', :count => @calendar.job_suites.count) if @calendar.job_suites.count > 1 || @calendar.job_suites.count == 0 %> <%= t('calendars.whereused.assigned_job_suite_text', :count => @calendar.job_suites.count) if @calendar.job_suites.count == 1 %> <% end %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-variables", :section_title => t(".automate_schedule_variables")}) do %> <%= t('calendars.whereused.assigned_variables_text', :count => @calendar.automate_schedule_variables.count) if @calendar.automate_schedule_variables.count > 1 || @calendar.automate_schedule_variables.count == 0 %> <%= t('calendars.whereused.assigned_variable_text', :count => @calendar.automate_schedule_variables.count) if @calendar.automate_schedule_variables.count == 1 %> <% end %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-forecast-schedules", :section_title => t(".forecast_schedules")}) do %> <%= t('calendars.whereused.assigned_forecast_schedules_text', :count => @calendar.job_forecast_schedules_count) if @calendar.job_forecast_schedules_count > 1 || @calendar.job_forecast_schedules_count == 0 %> <%= t('calendars.whereused.assigned_forecast_schedule_text', :count => @calendar.job_forecast_schedules_count) if @calendar.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('calendars.whereused.assigned_job_suite_forecast_schedules_text', :count => @calendar.job_suite_forecast_schedules_count) if @calendar.job_suite_forecast_schedules_count > 1 || @calendar.job_suite_forecast_schedules_count == 0 %> <%= t('calendars.whereused.assigned_job_suite_forecast_schedule_text', :count => @calendar.job_suite_forecast_schedules_count) if @calendar.job_suite_forecast_schedules_count == 1 %> <% end %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-switch-calendar", :section_title => t(".switch_section")}) do %> <%= t('calendars.whereused.switch_section_preview') %> <% end %>
<%= button_to_function(t('common.close'), "window.open('#{url_for(:action => 'index')}', '_self');") %>