mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Added hints for username and name in sign up form and in edit profile
This commit is contained in:
parent
e2a7e396a2
commit
8a96bd137c
2 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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: '')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue