%= form_for(@historical_job) do |f| %>
<% if @historical_job.errors.any? %>
<%= pluralize(@historical_job.errors.count, "error") %> prohibited this application from being saved:
<% @historical_job.errors.full_messages.each do |msg| %>
- <%= msg %>
<% end %>
<% end %>
<%= f.label :script_type %>
<%= f.select(:application_type_id,
Naf::ApplicationType.all.collect{ |type| [type.script_type_name, type.id] },
{ include_blank: true }) %>
<%= f.label :command, "Command*" %>
<%= f.text_area :command, rows: 4, cols: 60 %>
<%= f.label 'Run Group Restriction' %>
<%= f.select(:application_run_group_restriction_id,
Naf::ApplicationRunGroupRestriction.all.map{ |a| [a.application_run_group_restriction_name, a.id] },
{ include_blank: true } )%>
<%= f.label 'Run Group Name' %>
<%= select_tag(:run_group_name_type, options_for_select([["command", "command"], ["not set", "not set"], ["custom", "custom"]], @run_group_name_type)) %>
<%= f.text_area :application_run_group_name,
rows: 4,
cols: 32,
placeholder: "Please input Application Run Group Name",
class: 'text_area' %>
<%= f.label :log_level %>
<%= f.text_field :log_level %>
<%= f.label :application_run_group_limit %>
<%= f.text_field :application_run_group_limit %>
<%= f.label :request_to_terminate %>
<%= f.check_box :request_to_terminate %>
<%= f.submit %>
<% end %>
<% content_for :javascripts do %>
<% end %>