app/views/devise/registrations/new.html.haml
%section
.col-md-8.col-sm-offset-2
= bootstrap_devise_error_messages!
.panel.panel-default.devise-bs
.panel-heading
%h4= t('.sign_up', default: 'Sign up')
.panel-body
= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { role: 'form' }) do |f|
.form-group
= f.label :email
= f.email_field :email, autofocus: true, class: 'form-control'
.form-group
= f.label :password
= f.password_field :password, class: 'form-control'
= f.submit t('.sign_up', default: 'Sign up'), class: 'btn btn-primary'
= render 'devise/shared/links'