Edit Location
<%= form_for [:admin, @pickup_location] do |f| %>
-
<%= f.label :location_name %>:
<%= f.text_field :location_name %>
-
<%= f.label :address1 %>:
<%= f.text_field :address1 %>
-
<%= f.label :address2 %>
<%= f.text_field :address2 %>
-
<%= f.label :city %>
<%= f.text_field :city %>
-
<%= f.label :state %>
<%= f.collection_select(:state_id, Country.find_by_name("United States").states.sort, :id, :name) %>
-
<%= f.label :zipcode %>
<%= f.text_field :zipcode %>
<%= f.fields_for @pickup_location.hours.new do |f| %>
<% ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"].each do |day| %>
<%= render :partial => "admin/suppliers/hours_form", :locals => { :day => day, :f => f } %>
<% end %>
<% end %>
<%= f.submit "Update" %>
<%= t('or') %> <%= link_to t("cancel"), "#", :id => "cancel_link" %>
<% end %>