%# When written in HAML, dynamic attributes (ie. (class="order-cycle-#{foo}")) were failing to parse.
Regrettably rewritten in ERB. Fix me! %>
<%= form_for current_order(true) do |f| %>
Active Hubs
<%= f.select :distributor_id, distributor_options(@distributors, f.object.distributor_id, current_order_cycle) %>
<%= f.submit 'Choose Hub' %>
Closing Soon
<% @order_cycles.each do |order_cycle| %>
| <%= f.radio_button :order_cycle_id, order_cycle.id %> |
|
|
<% end %>
<%= f.submit 'Choose Order Cycle' %>
<% end %>