<%= form_for([@application, @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.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 %>