Sha256: 25be3180978bd3c0a3c5fc27e273312bc35d8247965c05187f4c7915004c9cb7
Contents?: true
Size: 1.65 KB
Versions: 19
Compression:
Stored size: 1.65 KB
Contents
<div class="row"> <div data-hook="bill_address_wrapper" class="col-xs-12 col-md-6"> <div class="panel panel-default"> <div class="panel-heading"> <h1 class="panel-title"> <%= Spree.t(:billing_address) %> </h1> </div> <div class="panel-body"> <%= f.fields_for :bill_address, (@user.bill_address || Spree::Address.default(@user, "bill")) do |ba_form| %> <% ba_form.object ||= Spree::Address.new(country: Spree::Country.new) %> <%= render partial: 'spree/admin/shared/address_form', locals: { f: ba_form, type: "billing" } %> <% end %> </div> </div> </div> <div data-hook="ship_address_wrapper" class="col-xs-12 col-md-6"> <div class="panel panel-default"> <div class="panel-heading"> <h1 class="panel-title"> <%= Spree.t(:shipping_address) %> </h1> </div> <div class="panel-body"> <p class="field checkbox" data-hook="use_billing"> <%= label_tag :use_billing, id: 'use_billing' do %> <% checked = @user.bill_address.nil? ? false : @user.bill_address == @user.ship_address %> <%= check_box_tag 'user[use_billing]', '1', checked %> <%= Spree.t(:use_billing_address) %> <% end %> </p> <%= f.fields_for :ship_address, (@user.ship_address || Spree::Address.default(@user, "ship")) do |sa_form| %> <% sa_form.object ||= Spree::Address.new(country: Spree::Country.new) %> <%= render partial: 'spree/admin/shared/address_form', locals: { f: sa_form, type: "shipping" } %> <% end %> </div> </div> </div> </div>
Version data entries
19 entries across 19 versions & 1 rubygems