h2= t('devise.registrations.title')
= form_for(resource, :as => resource_name, :url => registration_path(resource_name), html: {class: 'form-horizontal'}) do |f| 
  = devise_error_messages!
  .control-group
     = f.label :name, class: 'control-label'
     .controls= f.text_field :name
  .control-group
     = f.label :email, class: 'control-label'
     .controls= f.email_field :email
  .control-group
     = f.label :password, class: 'control-label'
     .controls= f.password_field :password
  .control-group
     = f.label :password_confirmation, class: 'control-label'
     .controls= f.password_field :password_confirmation
  .control-group
    .controls
      = f.submit t('devise.registrations.button'), class: 'btn btn-primary'
= render "devise_links"
