diff options
author | Marin Jankovski <maxlazio@gmail.com> | 2012-11-06 17:30:48 +0400 |
---|---|---|
committer | Marin Jankovski <maxlazio@gmail.com> | 2013-01-18 14:57:31 +0400 |
commit | 296cdd591f7f01ffdbe18cd6a839bbd0e624dfba (patch) | |
tree | fd910106cf092da00a7fbddfe4d6e19b1f9a00eb /app/views/devise/registrations | |
parent | b07e1b3aedf87fdf3ec7a6855cec8194b0a30a59 (diff) |
Add optional signup.
Diffstat (limited to 'app/views/devise/registrations')
-rw-r--r-- | app/views/devise/registrations/new.html.erb | 18 | ||||
-rw-r--r-- | app/views/devise/registrations/new.html.haml | 19 |
2 files changed, 19 insertions, 18 deletions
diff --git a/app/views/devise/registrations/new.html.erb b/app/views/devise/registrations/new.html.erb deleted file mode 100644 index 4ac617c5912..00000000000 --- a/app/views/devise/registrations/new.html.erb +++ /dev/null @@ -1,18 +0,0 @@ -<h2>Sign up</h2> - -<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %> - <%= devise_error_messages! %> - - <div><%= f.label :email %><br /> - <%= f.email_field :email %></div> - - <div><%= f.label :password %><br /> - <%= f.password_field :password %></div> - - <div><%= f.label :password_confirmation %><br /> - <%= f.password_field :password_confirmation %></div> - -<div><%= f.submit "Sign up", :class => "input_button" %></div> -<% end %> - -<%= render :partial => "devise/shared/links" %> diff --git a/app/views/devise/registrations/new.html.haml b/app/views/devise/registrations/new.html.haml new file mode 100644 index 00000000000..81eb2622261 --- /dev/null +++ b/app/views/devise/registrations/new.html.haml @@ -0,0 +1,19 @@ += form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :class => "login-box" }) do |f| + = image_tag "login-logo.png", :width => "304", :height => "66", :class => "login-logo", :alt => "Login Logo" + = devise_error_messages! + %div + = f.text_field :name, :class => "text top", :placeholder => "Name", :required => true + %div + = f.text_field :username, :class => "text middle", :placeholder => "Username", :required => true + %div + = f.email_field :email, :class => "text middle", :placeholder => "Email", :required => true + %div + = f.password_field :password, :class => "text middle", :placeholder => "Password", :required => true + %div + = f.password_field :password_confirmation, :class => "text bottom", :placeholder => "Confirm password", :required => true + %div + = f.submit "Sign up", :class => "primary btn wide" + %br + %hr + = link_to "Sign in", new_session_path(resource_name) + = link_to "Forgot your password?", new_password_path(resource_name), :class => "right" |