<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2011 %> <% form_id = "where_used_automate_schedule_variable_#{@automate_schedule_variable.id}" button_id = "button_close_#{@automate_schedule_variable.id}" @title_section = t('common.new_where_used_title', :type => t('common.automate_schedule_variable')) @title_section = @title_section + ' ' + t('common.view_only_mode') if @view_only @title_item = h @automate_schedule_variable.name @help_link_anchor = HELP_URL_CONFIG['scheduling_objects']['automate_schedule_variables']['where_used'] %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-agent_environments", :section_title => t("common.agent_environments")}) do %> <% environment_count = @automate_schedule_variable.public_agent_environment_count %> <%= t('automate_schedule_variables.whereused.assigned_agent_environments_text', :count => environment_count) if environment_count > 1 || environment_count == 0 %> <%= t('automate_schedule_variables.whereused.assigned_agent_environment_text', :count => environment_count) if environment_count == 1 %> <% end %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-jobs", :section_title => t("common.jobs")}) do %> <% job_count = @automate_schedule_variable.private_agent_environment_job_count %> <%= t('automate_schedule_variables.whereused.assigned_jobs_text', :count => job_count) if job_count > 1 || job_count == 0 %> <%= t('automate_schedule_variables.whereused.assigned_job_text', :count => job_count) if job_count == 1 %> <% end %> <% render(:layout => 'shared/edit_section',:locals => {:section_id => "where-used-member-jobs", :section_title => t("common.member_jobs")}) do %> <% job_member_count = @automate_schedule_variable.private_agent_environment_member_job_count %> <%= t('automate_schedule_variables.whereused.assigned_member_jobs_text', :count => job_member_count) if job_member_count > 1 || job_member_count == 0 %> <%= t('automate_schedule_variables.whereused.assigned_member_job_text', :count => job_member_count) if job_member_count == 1 %> <% end %>
<%= button_to_function(t('common.close'), "window.open('#{url_for(:action => 'index')}', '_self');") %>