<% @body_id = 'signup' %>

<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @user } %>

<div id="new-customer">
  <h6><%= t(:new_customer) %></h6>

  <div data-hook="signup">

    <%= form_for :user, :url => spree.user_registration_path(@user) do |f| %>
      <div data-hook="signup_inside_form"%>
        <%= render :partial => 'spree/shared/user_form', :locals => { :f => f } %>
        <p><%= f.submit t(:create), :class => 'button primary' %></p>
      </div>
    <% end %>
    <%= t(:or) %> <%= link_to t(:login_as_existing), spree.login_path %>

  </div>

</div>

<div data-hook="login_extras"></div>
