Sha256: a88d361fa0c41611e1c6920485e699b8c819321ee239c6315bb4891b875195e7

Contents?: true

Size: 1.73 KB

Versions: 10

Compression:

Stored size: 1.73 KB

Contents

<h3><%= t(:customer_details) %></h3>
<table class="index" data-hook="customer_guest">
  <thead>
    <th colspan="8"><%= t(:account) %></th>
  </thead>
  <tbody>
    <tr data-hook="customer_fields">
      <td class="lbl-col"><%= f.label :email, t(:email) + ':' %></td>
      <td class="val-col" colspan="3"><%= f.email_field :email, :class => 'fullwidth' %></td>
      <td class="lbl-col"><%= label_tag nil, t(:guest_checkout) %>:</td>
      <td class="val-col" colspan="3">
        <% if @order.completed? %>
          <%= @order.user.nil? ? t(:yes) : t(:no) %>
        <% else %>
          <% guest = @order.user.nil? || @order.user.anonymous? %>
          <label class="sub">
            <%= radio_button_tag :guest_checkout, true, guest %>
            <%= t(:yes) %>
          </label> &nbsp;
          <label class="sub">
            <%= radio_button_tag :guest_checkout, false, !guest, :disabled => @order.cart? %>
            <%= t(:no) %>
          </label>
          <%= hidden_field_tag :user_id, @order.user_id %>
        <% end %>
      </td>
    </tr>
  </tbody>
</table>

<h3><%= Spree::Address.model_name.human(:count => 2) %></h3>
<%= f.fields_for :bill_address do |ba_form| %>
  <%= render :partial => 'spree/admin/shared/address_form', :locals => { :f => ba_form, :name => t(:billing_address), :use_billing => false } %>
<% end %>

<%= f.fields_for :ship_address do |sa_form| %>
  <%= render :partial => 'spree/admin/shared/address_form', :locals => { :f => sa_form, :name => t(:shipping_address), :use_billing => true } %>
<% end %>

<p class="form-buttons" data-hook="buttons">
  <%= button @order.cart? ? t(:continue) : t(:update) %>
</p>

<% content_for :head do %>
  <%= javascript_include_tag states_path, 'admin/address_states.js' %>
<% end %>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
spree_core-1.0.7 app/views/spree/admin/orders/customer_details/_form.html.erb
spree_core-1.0.6 app/views/spree/admin/orders/customer_details/_form.html.erb
spree_core-1.0.4 app/views/spree/admin/orders/customer_details/_form.html.erb
spree_core-1.0.3 app/views/spree/admin/orders/customer_details/_form.html.erb
spree_core-1.0.2 app/views/spree/admin/orders/customer_details/_form.html.erb
spree_core-1.0.1 app/views/spree/admin/orders/customer_details/_form.html.erb
spree_core-1.0.0 app/views/spree/admin/orders/customer_details/_form.html.erb
spree_core-1.0.0.rc4 app/views/spree/admin/orders/customer_details/_form.html.erb
spree_core-1.0.0.rc3 app/views/spree/admin/orders/customer_details/_form.html.erb
spree_core-1.0.0.rc2 app/views/spree/admin/orders/customer_details/_form.html.erb