h2= t('devise.user.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 - if f.object.errors[:email].present? small.error= f.object.errors[:email].to_sentence .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.user.registrations.button'), class: 'button' = render 'users/devise/links'