<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2011 %> <% form_id = "cron_import_form" button_id = "button_close_#{@import_file.id}" @title_section = t('import_files.cron_import.title') @title_section = @title_section + ' ' + t('common.view_only_mode') if @view_only @title_item = (h @import_file.agent_file_path).gsub(/\s/, " ") @help_link_anchor = HELP_URL_CONFIG['admin']['import_center']['cron_import'] %> <% form_for @job, :url => {:action => :create, :controller => :import_files}, :html => { :id => form_id, :onsubmit => "controller.submitImport();return false;"} do |form| %>

<%= t_label("import_files.cron_import.import_date") %>

<%= format_timestamp(@import_file.created_at) %>

<%= render( :partial => 'import_options', :layout => 'shared/edit_section', :locals => { :section_id => "job-import-options", :section_title => t('import_files.cron_import.import_options'), :details_only => true, :form => form}) %> <%= render( :partial => "cron_tasks", :layout => 'shared/edit_section', :locals => { :section_id => "file-transfer-system-general", :section_title => t('import_files.cron_import.cron_commands'), :details_only => true}) %> <%= render( :partial => 'edit_agent_environment', :layout => 'shared/edit_section', :locals => { :section_id => "job-agent-environment", :section_title => t('jobs.job.agent_environment_tab'), :details_only => true, :form => form}) %>
<% if @view_only %>
<%= button_to_function(t('common.close'), "window.open('#{@return_referer}', '_self');") %>
<% else %>
<%= submit_tag(t('import_files.cron_import.import_text'), :id => button_id, :class => "save-button") if @has_import_authority %> <%= button_to_function(t('common.cancel'), "window.open('#{@return_referer}', '_self');") %>
<% end %> <% end %>