Sha256: eef8f7384924f7b3d0addb3de45037be3c7526e4b8a0d266850ceb64433eb816

Contents?: true

Size: 1.6 KB

Versions: 1

Compression:

Stored size: 1.6 KB

Contents

<div class="address-step">
  <fieldset class="address-step__billing" id="billing">
    <legend>
      <%= t("spree.billing_address") %>
    </legend>

    <%= form.fields_for :bill_address do |bill_form| %>
      <%= render(
        "spree/components/forms/address_inputs",
        form: bill_form,
        address_type: "billing",
        address: @order.bill_address
      ) %>
    <% end %>
  </fieldset>

  <fieldset class="address-step__shipping" id="shipping">
    <legend>
      <%= t('spree.shipping_address') %>
    </legend>

    <%= form.fields_for :ship_address do |ship_form| %>
      <%= render(
        'spree/components/forms/inputs/checkbox_input',
        checked: @order.shipping_eq_billing_address?,
        id: :order_use_billing,
        label: t('spree.use_billing_address'),
        name: "order[use_billing]",
        value: "1"
      ) %>

      <%= render(
        "spree/components/forms/address_inputs",
        form: ship_form,
        address_type: "shipping",
        address: @order.ship_address
       ) %>
    <% end %>
  </fieldset>

  <div class="address-step__actions">
    <%= render(
      "spree/components/buttons/button_primary",
      content: I18n.t("spree.save_and_continue"),
      name: :commit,
      type: :submit
    ) %>

    <% if try_spree_current_user %>
      <%= render(
        "spree/components/forms/inputs/checkbox_input",
        checked: try_spree_current_user.respond_to?(:persist_order_address),
        id: "save-user-address",
        label: I18n.t("spree.save_my_address"),
        name: :save_user_address,
        value: "1"
      ) %>
    <% end %>
  </div>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_starter_frontend-0.1.0 app/views/spree/components/checkout/steps/_address_step.html.erb