summaryrefslogtreecommitdiff
path: root/app/views/devise/registrations/new.html.haml
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-02-05 15:56:58 +0100
committerDouwe Maan <douwe@gitlab.com>2015-02-05 19:12:47 +0100
commit485e55f88c6f2a50f1d88188a015fb1572f8bd94 (patch)
tree184a601fa06d005f8693acea33a8db6ddae8b6f6 /app/views/devise/registrations/new.html.haml
parent0a9cab4ee65f2b42c56989698c401cab60d68b53 (diff)
downloadgitlab-ce-485e55f88c6f2a50f1d88188a015fb1572f8bd94.tar.gz
Clean up devise views.
Diffstat (limited to 'app/views/devise/registrations/new.html.haml')
-rw-r--r--app/views/devise/registrations/new.html.haml34
1 files changed, 7 insertions, 27 deletions
diff --git a/app/views/devise/registrations/new.html.haml b/app/views/devise/registrations/new.html.haml
index d6a952f3dc5..c07e409d583 100644
--- a/app/views/devise/registrations/new.html.haml
+++ b/app/views/devise/registrations/new.html.haml
@@ -1,27 +1,7 @@
-.login-box
- .login-heading
- %h3 Sign up
- .login-body
- = form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f|
- .devise-errors
- = devise_error_messages!
- %div
- = f.text_field :name, class: "form-control top", placeholder: "Name", required: true
- %div
- = f.text_field :username, class: "form-control middle", placeholder: "Username", required: true
- %div
- = f.email_field :email, class: "form-control middle", placeholder: "Email", required: true
- %div
- = f.password_field :password, class: "form-control middle", placeholder: "Password", required: true
- %div
- = f.password_field :password_confirmation, class: "form-control bottom", placeholder: "Confirm password", required: true
- %div
- = f.submit "Sign up", class: "btn-create btn"
- .login-footer
- %p
- %span.light
- Have an account?
- %strong
- = link_to "Sign in", new_session_path(resource_name)
- %p
- = link_to "Forgot your password?", new_password_path(resource_name)
+= render 'devise/shared/signup_box'
+
+.clearfix.prepend-top-20
+ = render 'devise/shared/sign_in_link'
+ %p
+ %span.light Did not receive confirmation email?
+ = link_to "Send again", new_confirmation_path(resource_name) \ No newline at end of file