diff --git a/app/views/devise/registrations/_form_fields.html.haml b/app/views/devise/registrations/_form_fields.html.haml index f359ae3b..3d3ff6a3 100644 --- a/app/views/devise/registrations/_form_fields.html.haml +++ b/app/views/devise/registrations/_form_fields.html.haml @@ -3,16 +3,16 @@ = f.label :username %abbr{title: 'This field is required'} * = f.text_field :username, required: true, autocomplete: 'off', class: 'form-control', placeholder: 'Username' - - if resource.errors[:username].any? + - if @user.errors[:username].any? .text-danger - = resource.errors[:username].first + = @user.errors[:username].first .form-group = f.label :email %abbr{title: 'This field is required'} * = f.email_field :email, required: true, autocomplete: 'off', class: 'form-control', placeholder: 'Email' - - if resource.errors[:email].any? + - if @user.errors[:email].any? .text-danger - = resource.errors[:email].first + = @user.errors[:email].first - if local_assigns[:full] .checkbox %label @@ -25,15 +25,15 @@ - if !@user.persisted? %abbr{title: 'This field is required'} * = f.password_field :password, required: !@user.persisted?, class: 'form-control', placeholder: 'Password' - - if resource.errors[:password].any? + - if @user.errors[:password].any? .text-danger - = resource.errors[:password].first + = @user.errors[:password].first .form-group = f.label :password_confirmation, 'Password Confirmation' = f.password_field :password_confirmation, required: !@user.persisted?, class: 'form-control', placeholder: 'Password Confirmation' - - if resource.errors[:password_confirmation].any? + - if @user.errors[:password_confirmation].any? .text-danger - = resource.errors[:password_confirmation].first + = @user.errors[:password_confirmation].first - if @user.persisted? %p.text-muted Leave blank if you don't want to change your password