Sha256: 4217a3ab573bd4d38a85c3b886bcd795b469a8e35d0555d975c077d8c70ef857

Contents?: true

Size: 1.27 KB

Versions: 34

Compression:

Stored size: 1.27 KB

Contents

<div class="row">
  <div data-hook="bill_address_wrapper" class="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-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">
        <%= 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

34 entries across 34 versions & 1 rubygems

Version Path
spree_backend-3.1.14 app/views/spree/admin/users/_addresses_form.html.erb
spree_backend-3.1.13 app/views/spree/admin/users/_addresses_form.html.erb
spree_backend-3.1.12 app/views/spree/admin/users/_addresses_form.html.erb
spree_backend-3.1.11 app/views/spree/admin/users/_addresses_form.html.erb
spree_backend-3.1.10 app/views/spree/admin/users/_addresses_form.html.erb
spree_backend-3.1.9 app/views/spree/admin/users/_addresses_form.html.erb
spree_backend-3.1.8 app/views/spree/admin/users/_addresses_form.html.erb
spree_backend-3.1.7 app/views/spree/admin/users/_addresses_form.html.erb
spree_backend-3.1.6 app/views/spree/admin/users/_addresses_form.html.erb
spree_backend-3.1.5 app/views/spree/admin/users/_addresses_form.html.erb
spree_backend-3.1.4 app/views/spree/admin/users/_addresses_form.html.erb
spree_backend-3.1.3 app/views/spree/admin/users/_addresses_form.html.erb
spree_backend-3.1.2 app/views/spree/admin/users/_addresses_form.html.erb
spree_backend-3.0.10 app/views/spree/admin/users/_addresses_form.html.erb
spree_backend-3.1.1 app/views/spree/admin/users/_addresses_form.html.erb
spree_backend-3.1.0 app/views/spree/admin/users/_addresses_form.html.erb
spree_backend-3.1.0.rc4 app/views/spree/admin/users/_addresses_form.html.erb
spree_backend-3.0.9 app/views/spree/admin/users/_addresses_form.html.erb
spree_backend-3.1.0.rc3 app/views/spree/admin/users/_addresses_form.html.erb
spree_backend-3.1.0.rc2 app/views/spree/admin/users/_addresses_form.html.erb