Products Pickup Settings
Pickups
<% if @pickups.empty? %>
No Pickup Locations Specified
<% else %>
<% end %>
<% form_tag({:controller => "pickups", :action => "create"}, :method => :post) do %>
<% if current_user.has_role?("vendor") %>
<%= hidden_field_tag :supplier_id, current_user.supplier.id %>
<% else %>
<%= select_tag :supplier_id, options_from_collection_for_select(@suppliers, "id", "title") %>
<% end %>
<%= select_tag :pickup_location_id, options_from_collection_for_select(@locations, "id", "location_name") %>
Dates: <%= text_field :dates, nil, :id => :dates %> (click in the field to add)
<%= submit_tag "Save" %>
<% end %>
<%= link_to "Create new location", new_admin_pickup_location_path %>