%= form_for([@job, @tab]) do |f| %>
<% if @tab.errors.any? %>
<%= pluralize(@tab.errors.count, "error") %> prohibited this job affinity tab from being saved:
<% @tab.errors.full_messages.each do |msg| %>
- <%= msg %>
<% end %>
<% end %>
<%= f.hidden_field :historical_job_id, value: @job.id %>
<%= f.label :affinity %>
<%= f.select(:affinity_id, ::Naf::Affinity.names_list, include_blank: true) %>
<%= f.label :affinity_parameter %>
<%= f.text_field :affinity_parameter %>
<%= f.submit %>
<% end %>