%= 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.names_list, include_blank: true) %>
<%= f.label :affinity_parameter %>
<%= f.text_field :affinity_parameter %>
<%= f.label :required %>
<%= f.check_box :required %>
<%= f.submit %>
<% end %>