Sha256: 6e1090950325696ed562834845fe9e044e99d362dc1cf586c78216356a02c617
Contents?: true
Size: 1.84 KB
Versions: 9
Compression:
Stored size: 1.84 KB
Contents
#comable-order .comable-ship_address h1 = @order.class.human_state_name(:delivery) - if @order.ship_address.try(:persisted?) = render 'comable/shared/address', address: @order.ship_address = link_to Comable.t('next_step'), next_order_path .edit.row h2 = Comable.t('edit_shipping_address') = form_for @order, as: :order, url: update_order_path, method: :put do |f| = f.fields_for :ship_address do |ff| = render 'comable/shared/address_form', address: ff = f.submit Comable.t('next_step') - if current_comable_user.other_addresses.any? .other_addresses.row h2 = Comable.t('other_addresses') ul.list-unstyled - current_comable_user.addresses.each do |address| - next if @order.ship_address.same_as? address li.col-sm-4 = render 'comable/shared/address', address: address = form_for @order, as: :order, url: update_order_path, method: :put do |f| .hidden = f.fields_for :ship_address, address.clone do |ff| = render 'comable/shared/address_form', address: ff = f.submit Comable.t('use_this_address'), class: 'btn btn-default' - else / TODO: Standardize - if @order.errors.any? .error_messages ul - @order.errors.full_messages.each do |full_message| li = full_message .new h2 = Comable.t('new_shipping_address') - @order.ship_address ||= @order.build_ship_address = form_for @order, as: :order, url: update_order_path, method: :put do |f| = f.fields_for :ship_address do |ff| = render 'comable/shared/address_form', address: ff = f.submit Comable.t('next_step')
Version data entries
9 entries across 9 versions & 2 rubygems