Sha256: 4320e3fe667be7339d04feb004587ae79582d0d94884aea78f286e3091fe81ff
Contents?: true
Size: 559 Bytes
Versions: 6
Compression:
Stored size: 559 Bytes
Contents
:ruby type = form.jquery_namespace(field).match("billing") ? "billing" : "shipping" = form.collection_select "country_id", Piggybak::Country.send(type), :id, :name, { :selected => form.object.country_id.to_s } - if form.object.country.states.any? = form.collection_select "state_id", form.object.country.states, :id, :name, { :selected => form.object.state_id.to_s } - else = form.text_field "state_id" :javascript var geodata_lookup = "#{piggybak.orders_geodata_url}"; - if type == "billing" = javascript_include_tag "piggybak/piggybak.states"
Version data entries
6 entries across 6 versions & 1 rubygems