Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

registrations

  • Loading branch information...
commit 2f5f97d3fbab34d588d157ac6f08df0efab34ddb 1 parent 774fc40
@tka authored
View
23 app/views/spree/shared/_user_form.html.erb
@@ -0,0 +1,23 @@
+
+<div id="password-credentials">
+ <div class="field">
+ <%= f.label :email, t(:email), :class => 'desc' %>
+ <div class="col">
+ <%= f.email_field :email, :size => "30" %>
+ </div>
+ </div>
+ <div class="field">
+ <%= f.label :password, t(:password), :class => 'desc' %>
+ <div class="col">
+ <%= f.password_field :password, :size => "30" %>
+ </div>
+ </div>
+ <div class="field">
+ <%= f.label :password_confirmation, t(:confirm_password), :class => 'desc' %>
+ <div class="col">
+ <%= f.password_field :password_confirmation, :size => "30" %>
+ </div>
+ </div>
+</div>
+
+<div data-hook="signup_below_password_fields"></div>
View
26 app/views/spree/user_registrations/new.html.erb
@@ -0,0 +1,26 @@
+<% @body_id = 'signup' %>
+<% @container_class = "account-container" %>
+
+<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @user } %>
+
+<div id="new-customer">
+<h3><%= t(:new_customer) %></h3>
+
+<section data-hook="signup">
+
+<%= form_for :user, :url => spree.user_registration_path(@user), :html => {:class => "custom-form"} do |f| %>
+ <div data-hook="signup_inside_form"%>
+ <%= render :partial => 'spree/shared/user_form', :locals => { :f => f } %>
+ <div class="button-area">
+ <%= f.submit t(:create), :class => 'submit button-gray' %>
+ <%= t(:or) %> <%= link_to t(:login_as_existing), spree.login_path %>
+ </div>
+ </div>
+<% end %>
+
+
+</section>
+
+</div>
+
+<div data-hook="login_extras"></div>
Please sign in to comment.
Something went wrong with that request. Please try again.