From 32df12ee322bbe07b11758b87599ba192e4515d4 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 9 Jul 2014 23:28:37 -0400 Subject: clean up some styles and form stuff Just look at the diff. --- app/views/users/new.html.erb | 33 +++++++++++++++++++++++---------- 1 file changed, 23 insertions(+), 10 deletions(-) (limited to 'app/views/users/new.html.erb') diff --git a/app/views/users/new.html.erb b/app/views/users/new.html.erb index 03041d9..1445a0d 100644 --- a/app/views/users/new.html.erb +++ b/app/views/users/new.html.erb @@ -26,24 +26,37 @@ <%= form_for @user do |f| %> <%= render "common/error_messages", :target => @user %>
- <%= f.label :name %>
- <%= f.text_field :name %> + <%= f.label :user_name %> + + This is the name you will use to log in. + It may consist of letters, numbers, _, and -. + +
+ <%= f.text_field :user_name %>
- <%= f.label :email %>
- <%= f.text_field(:email, type: "email") %> + <%= f.label :password %> + + Must be at least 6 characters long. + +
+ <%= f.password_field(:password, required: :required, minlength: 6) %>
- <%= f.label :user_name %>
- <%= f.text_field :user_name %> + <%= f.label(:password_confirmation, "Confirm Password") %>
+ <%= f.password_field(:password_confirmation, required: :required, minlength: 6) %>
- <%= f.label :password %>
- <%= f.password_field :password %> + <%= f.label :name %> + + A display name; perhaps your real name, or perhaps an alias. + +
+ <%= f.text_field :name %>
- <%= f.label(:password_confirmation, "Confirm Password") %>
- <%= f.password_field :password_confirmation %> + <%= f.label :email %>
+ <%= f.email_field(:email) %>
<%= show_simple_captcha %> -- cgit v1.2.3