<%= form_for([@job, @tab]) do |f| %> <% if @tab.errors.any? %>

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

<% end %> <%= f.hidden_field :historical_job_id, value: @job.id %>
<%= f.label :affinity %>
<%= f.select(:affinity_id, ::Naf::Affinity.selectable.map{ |a| [a.affinity_classification.affinity_classification_name + ', ' + a.affinity_name, a.id] }, include_blank: true) %>

<%= f.label :affinity_parameter %>
<%= f.text_field :affinity_parameter %>

<%= f.submit %>
<% end %>