Sha256: c48563e915f633bbd339546f2d3abf27ffef1fb14c6c754e036216b51c716351
Contents?: true
Size: 795 Bytes
Versions: 3
Compression:
Stored size: 795 Bytes
Contents
.well{id: "#{type}_fields"} %h3= t("#{type}_address") = simple_fields_for "#{type}" do |s| = s.simple_fields_for :address do |a| = a.hidden_field :order_id, value: order.id - [:first_name, :last_name, :street, :city, :zipcode].each do |field| = a.input field, input_html: { value: fill_address(user, order, type, field) } = a.input :phone, input_html: { value: fill_address(user, order, type, :phone) }, placeholder: '+380971112233' = a.input :country_code, selected: fill_address(user, order, type, :country_code), label: t('checkout.country') - if type == :shipping = f.fields_for :use_billing do |sb| = sb.check_box :allow, checked: true = t('checkout.use_billing')
Version data entries
3 entries across 3 versions & 1 rubygems