Sha256: 2b5023d638a52652211b4fc2d210eb1e807a5d4a7e1bcb07a604d24381151652

Contents?: true

Size: 1.71 KB

Versions: 2

Compression:

Stored size: 1.71 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.text_field :email, :class => "fullwidth" %></td>
      <td class="lbl-col"><label><%= t('guest_checkout') %>:</label></td>
      <td class="val-col" colspan="3">
        <% if @order.completed? %>
          <%= @order.user.nil? ? "Yes" : "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>
          <%= text_field_tag :user_id, @order.user_id %>
        <% end %>
      </td>
    </tr>
  </tbody>
</table>

<h3><%= Address.model_name.human(:count => 2) %></h3>
<%= f.fields_for :bill_address do |ba_form|  %>
  <%= render :partial => "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 => "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.js', 'admin/address_states.js' %>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_core-0.70.0.rc2 app/views/admin/orders/_user_form.html.erb
spree_core-0.70.RC1 app/views/admin/orders/_user_form.html.erb