Sha256: c0fef36364a5e18ce78ab591340f5daa6cc2978f8de8cde92f2394e4eb51b032

Contents?: true

Size: 1.71 KB

Versions: 8

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_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>
          <%= 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

8 entries across 8 versions & 1 rubygems

Version Path
spree_core-0.70.7 app/views/admin/orders/_user_form.html.erb
spree_core-0.70.6 app/views/admin/orders/_user_form.html.erb
spree_core-0.70.5 app/views/admin/orders/_user_form.html.erb
spree_core-0.70.4 app/views/admin/orders/_user_form.html.erb
spree_core-0.70.3 app/views/admin/orders/_user_form.html.erb
spree_core-0.70.2 app/views/admin/orders/_user_form.html.erb
spree_core-0.70.1 app/views/admin/orders/_user_form.html.erb
spree_core-0.70.0 app/views/admin/orders/_user_form.html.erb