<% content_for :body do %>
<%= link_to 'Back', naf.historical_jobs_path %>

Create a Job

<%= form_tag(naf.historical_jobs_path, id: 'job_add') do %> <% if defined?(@historical_job) && @historical_job.errors.any? %>

<%= pluralize(@historical_job.errors.count, "error") %> prohibited job from being saved:

<% end %>
<%= label :script_type, "Script Type*" %> <%= select(:historical_job, :application_type_id, Naf::ApplicationType.all.collect { |type| [type.script_type_name, type.id] }, { include_blank: true }) %>

<%= label :command, "Command*" %> <%= text_area :historical_job, :command, rows: 4, cols: 60 %>

<%= label :run_group_restriction, "Run Group Restriction*" %> <%= select(:historical_job, :application_run_group_restriction_id, Naf::ApplicationRunGroupRestriction.all.collect { |a| [a.application_run_group_restriction_name, a.id] }, { include_blank: true }) %>

<%= label :run_group_name, "Run Group Name" %> <%= text_field(:historical_job, :application_run_group_name) %>

<%= label :application_run_group_limit, "Application Run Group Limit" %> <%= text_field(:historical_job, :application_run_group_limit) %>


<%= submit_tag("Create Job") %> <% end %>
<% end %> <%= render partial: 'naf/shared/application' %>