Skip to content

Commit

Permalink
Fix devise forms position
Browse files Browse the repository at this point in the history
  • Loading branch information
hmlON committed Mar 10, 2017
1 parent 1e9f036 commit 480b078
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/views/devise/registrations/new.html.slim
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
= title 'Sign up'

.no-header-fix
h2.text-center Sign up

.omniauth-links
= link_to "Sign up with #{fa_icon('vk')}".html_safe, user_vkontakte_omniauth_authorize_path, class: 'omniauth-link'

= simple_form_for(resource, as: resource_name, url: registration_path(resource_name), defaults: { required: true, label: false }) do |f|
= devise_error_messages!
/ = devise_error_messages!
= f.input :name, placeholder: 'Full name'
= f.input :email, placeholder: 'Email'
= f.input :password, placeholder: 'Password', autocomplete: 'off', hint: "(#{@minimum_password_length} characters minimum)"
Expand Down
2 changes: 2 additions & 0 deletions app/views/devise/sessions/new.html.slim
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
= title 'Sign in'

.no-header-fix
h2.text-center Sign in

.omniauth-links
Expand Down

0 comments on commit 480b078

Please sign in to comment.