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

<%= pluralize(@slot.errors.count, "error") %> prohibited this Machine Affinity Slot from being saved:

<% end %> <%= f.hidden_field :machine_id, value: @machine.id %>
<%= f.label :affinity_id, "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.label :required %>
<%= f.check_box :required %>

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