Better description to avoid sign up failures

This commit is contained in:
Chashmeet Singh 2016-03-03 19:46:16 +05:30
parent eda5c2bc07
commit fc609844d6

View file

@ -7,11 +7,11 @@
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 :email, input_html: { required: true }
= f.input :name, input_html: { required: true }
= f.input :password, input_html: { required: true }
= f.input :password_confirmation, input_html: { required: true }
= f.input :username, input_html: { required: true, hint: 'Eg. john_doe' }
= f.input :email, input_html: { required: true, hint: 'Eg. abc@example.com' }
= f.input :name, input_html: { required: true, hint: 'Eg. John Doe' }
= f.input :password, input_html: { required: true, hint: 'Min. 6 characters' }
= f.input :password_confirmation, input_html: { required: true, hint: 'Same as above' }
%p.text-right
= f.action :submit, as: :button, label: 'Sign Up', button_html: { class: 'btn btn-success' }