Sha256: 25fb48ed2704609822094ff0d3b1a5e493b9a82bd400d67199511ea8c4473853
Contents?: true
Size: 459 Bytes
Versions: 1
Compression:
Stored size: 459 Bytes
Contents
:ruby type = form.object.is_shipping ? "shipping" : "billing" = 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}";
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
piggybak-0.6.34 | app/views/rails_admin/main/_location_select.html.haml |