%= form_for([@application_schedule, @tab]) do |f| %>
<% if @tab.errors.any? %>
<%= pluralize(@tab.errors.count, "error") %> prohibited this application schedule affinity tab from being saved:
<% end %>
<%= f.hidden_field :application_schedule_id, value: @application_schedule.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.submit %>
<% end %>