<% # (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2009 %> <% button_id = "button_close_#{@job.id}" form_id = "job_output_distribution_#{@job.id}" @title_section = t('.title') @title_section = @title_section + ' ' + t('common.view_only_mode') if @view_only @title_item = @job.name @help_link_anchor = HELP_URL_CONFIG['jobs']['job_output_distribution'] if @job.job_type == MemberJob::JOB_TYPE url = member_job_path(@job.id) loggingPath = edit_member_job_path(@job.id, :page => 'logging') outputDistributionListPath = edit_member_job_path(@job.id, :list => 'output_distributions') outputDistributionListUsersPath = edit_member_job_path(@job.id, :format => :json, :list => 'email_file_distribution_users') emailJoblogPath = edit_member_job_path(@job.id, :page => 'email_joblog_notification') assignedEmailJoblogPath = edit_member_job_path(@job.id, :format => :json, :list => 'email_joblog_users') parent_type = "member_job" else url = job_path(@job.id) loggingPath = edit_job_path(@job.id, :page => 'logging') outputDistributionListPath = edit_job_path(@job.id, :list => 'output_distributions') outputDistributionListUsersPath = edit_job_path(@job.id, :format => :json, :list => 'email_file_distribution_users') emailJoblogPath = edit_job_path(@job.id, :page => 'email_joblog_notification') assignedEmailJoblogPath = edit_job_path(@job.id, :format => :json, :list => 'email_joblog_users') parent_type = "job" end %> <% form_for(@job, :url => url, :html => { :id => form_id, :class => "edit_job", :autocomplete => "off", :onsubmit => "try {helpsys.CntMgr.getController('#{form_id}').submitForm();} catch(e) {console.log(e);};return false;"}) do |form| %> <% render( :layout => 'shared/edit_section', :locals => { :section_id => "job-logging", :section_title => t('.logging')}) do %> <% if !@job.copy_joblog_to_server %>

<%= t('jobs.job.job_log_not_saved') %>

<% else %>

<%= t('jobs.job.job_log_saved') %>

<% end %> <% if @job.email_job_log %>
<% if !@job.email_notification_list.nil? && @job.email_notification_list_public_list %>

<%= " #{t('common.email_notification_list', :notification_list => @job.email_notification_list.name) } " %>

<% else %>

<%= " #{t('common.email_notification', :user => formatted_list_of_usernames(@job.email_joblog_user_names)) } " %>

<% end %>
<% else %>

<%= t('jobs.output_distributions.job_log_will_not_emailed') %>
<% end %> <% end %> <%= render( :partial => 'jobs/edit_output_distribution', :layout => 'shared/edit_section', :locals => { :section_id => "job-output-distributions", :section_title => t('output_distribution.agent_file_distribution'), :details_only => true}) %>
<%= standard_buttons(button_id) %>
<% end %>