<% @body_id = 'signup' %> <%= render "shared/error_messages", :target => @user %>

<%= t("new_customer") %>

<%= hook :signup do %> <%= form_for(:user, :url => registration_path(@user)) do |f| %> <%= hook :signup_inside_form do %> <% if session[:omniauth] %>

<%= f.label :email, t("email") %>
<%= f.text_field :email, :class => 'title' %>

<%= submit_tag t("create"), :class => 'button primary' %>

<% else %> <%= render 'shared/user_form', :f => f %>

<%= submit_tag t("create"), :class => 'button primary' %>

<% end %> <% end %> <% end %> <%= t("or") %> <%= session[:omniauth] ? link_to( t("login_as_existing"), user_registration_path, :method => :delete) : link_to( t("login_as_existing"), login_path) %> <% end %>