Sha256: 6285e26566577465dc4d156d0df6297736bbd01b94828e6af6aedd23b160e3d1

Contents?: true

Size: 1.52 KB

Versions: 12

Compression:

Stored size: 1.52 KB

Contents

<div class="row">
  <div data-hook="bill_address_wrapper" class="col-12 col-lg-6">
    <div class="card mb-3">
      <div class="card-header">
        <h5 class="card-title mb-0 h6">
          <%= Spree.t(:billing_address) %>
        </h5>
      </div>

      <div class="card-body">
        <%= f.fields_for :bill_address, @user.bill_address || @user.addresses.new(country: current_store.default_country) do |ba_form| %>
          <%= 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-12 col-lg-6">
    <div class="card mb-3">
      <div class="card-header">
        <h5 class="card-title mb-0 h6">
          <%= Spree.t(:shipping_address) %>
        </h5>
      </div>

      <div class="card-body">
          <p class="form-group" data-hook="use_billing">
            <% checked = @user.bill_address.nil? ? false : @user.bill_address == @user.ship_address %>
            <%= check_box_tag 'user[use_billing]', '1', checked, class: 'checkbox' %>
            <%= label_tag :use_billing, Spree.t(:use_billing_address), for: 'user_use_billing', id: 'use_billing', class: 'form-check-label' %>
          </p>
        <%= f.fields_for :ship_address, @user.ship_address || @user.addresses.new(country: current_store.default_country) do |sa_form| %>
          <%= render partial: 'spree/admin/shared/address_form', locals: { f: sa_form, type: "shipping" } %>
        <% end %>
      </div>
    </div>
  </div>
</div>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
spree_backend-4.8.4 app/views/spree/admin/users/_addresses_form.html.erb
spree_backend-4.8.3 app/views/spree/admin/users/_addresses_form.html.erb
spree_backend-4.8.2 app/views/spree/admin/users/_addresses_form.html.erb
spree_backend-4.8.1 app/views/spree/admin/users/_addresses_form.html.erb
spree_backend-4.7.2 app/views/spree/admin/users/_addresses_form.html.erb
spree_backend-4.6.2 app/views/spree/admin/users/_addresses_form.html.erb
spree_backend-4.7.1 app/views/spree/admin/users/_addresses_form.html.erb
spree_backend-4.7.0 app/views/spree/admin/users/_addresses_form.html.erb
spree_backend-4.6.1 app/views/spree/admin/users/_addresses_form.html.erb
spree_backend-4.6.0 app/views/spree/admin/users/_addresses_form.html.erb
spree_backend-4.5.1 app/views/spree/admin/users/_addresses_form.html.erb
spree_backend-4.5.0 app/views/spree/admin/users/_addresses_form.html.erb