.container - if resource.errors.any? .alert.alert-warning.fade.in{role: 'alert'} %button.close{'data-dismiss' => 'alert', type: 'button'} %span{'aria-hidden' => 'true'} × %span.sr-only Close %strong= pluralize(resource.errors.count, 'Error') %ul - resource.errors.each do |attr,msg| %li = attr.to_s.humanize = msg.to_s.humanize = simple_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put, class: 'form-signin well' }) do |f| %h3.form-signin-heading.text-center Change your password %hr = f.input :reset_password_token, :as => :hidden = f.input :password, input_html: {autofocus:'', placeholder: 'Password', required: '', type: 'password', class: 'form-control' } = f.input :password_confirmation, input_html: {autofocus:'', placeholder: 'Confirm new password', required: '', type: 'password', class: 'form-control' } %hr = f.submit 'Update', class: 'btn btn-lg btn-primary btn-block' = render 'admintgs/shared/links' %hr