.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: registration_path(resource_name), html: { method: :put, class: 'form-signin well' }) do |f| %h3.form-signin-heading.text-center Edit Admin User %hr = f.input :name, input_html: { placeholder: 'Name', required: '', type: 'name', class: 'form-control' } = f.input :email, input_html: { placeholder: 'Email', required: '', type: 'email', class: 'form-control' } %hr - if devise_mapping.confirmable? && resource.pending_reconfirmation? %div Currently waiting confirmation for: = resource.unconfirmed_email %li (leave blank if you dont want to change it) = f.input :password, input_html: { :autocomplete => 'off', placeholder: 'Password', required: '', type: 'password', class: 'form-control' } = f.input :password_confirmation, input_html: {autofocus:'', placeholder: 'Password Confirmation', required: '', type: 'password', class: 'form-control' } %hr %li (we need your current password to confirm your changes) = f.input :current_password, input_html: { :autocomplete => 'off', placeholder: 'Current Confirmation', required: '', type: 'password', class: 'form-control' } %hr = f.submit 'Update', class: 'btn btn-lg btn-primary btn-block' %hr .container .col-md-6 = link_to 'Back to home', :back, class: 'btn btn-primary' .col-md-6.text-right = link_to 'Delete my account', registration_path(resource_name), data: { confirm: 'Are you sure?' }, method: :delete, class: 'btn btn-danger' %br %hr %br