Sha256: db8f180b9317597be20a676d2f35f9b48f2152077696c5313a472752d7ffffa0

Contents?: true

Size: 595 Bytes

Versions: 1

Compression:

Stored size: 595 Bytes

Contents

<%
  form_url = update_checkout_path(@order.state)
  form_html = { id: "checkout_form_#{@order.state}" }
%>

<%= form_for @order, url: form_url, html: form_html do |form| %>
  <% if @order.state == "address" || !@order.email? %>
    <%= render(
      "spree/components/forms/inputs/text",
      id: :order_email,
      label: "Customer E-Mail",
      name: "order[email]",
      placeholder: "name@example.com",
      required: true,
      type: :email,
      value: @order.email
    ) %>
  <% end %>

  <%= render "spree/components/checkout/steps/#{@order.state}_step", form: form %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

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