From 8a96bd137c61a7b42d0da05e4e14325669484acd Mon Sep 17 00:00:00 2001 From: Alator Date: Tue, 28 Mar 2017 17:54:27 +0300 Subject: [PATCH] Added hints for username and name in sign up form and in edit profile --- app/views/devise/registrations/new.html.haml | 4 ++-- app/views/users/edit.html.haml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/devise/registrations/new.html.haml b/app/views/devise/registrations/new.html.haml index 36eeb6e3..aa9c4db4 100644 --- a/app/views/devise/registrations/new.html.haml +++ b/app/views/devise/registrations/new.html.haml @@ -7,9 +7,9 @@ Sign Up .panel-body = semantic_form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| - = f.input :username, input_html: { required: true } + = f.input :username, input_html: { required: true }, hint: 'This is how the other users see you, not your real name' = f.input :email, input_html: { required: true } - = f.input :name, input_html: { required: true } + = f.input :name, input_html: { required: true }, hint: 'This is your real name' = f.input :password, input_html: { required: true } = f.input :password_confirmation, input_html: { required: true } %p.text-right diff --git a/app/views/users/edit.html.haml b/app/views/users/edit.html.haml index f199347f..6f70b651 100644 --- a/app/views/users/edit.html.haml +++ b/app/views/users/edit.html.haml @@ -6,8 +6,8 @@ .row .col-md-12 = semantic_form_for(@user, url: user_path(@user.id)) do |f| - = f.input :name, as: :string - = f.input :nickname, as: :string + = f.input :name, as: :string, hint: 'This is your real name.' + = f.input :nickname, as: :string, hint: 'This is how the other users see you, not your real name' .control-label = "Avatar" = image_tag(@user.gravatar_url(size: '48'), title: "Yo #{@user.name}!", alt: '')