diff --git a/app/views/devise/confirmations/new.html.haml b/app/views/devise/confirmations/new.html.haml index d190140cd..c7ebdd604 100644 --- a/app/views/devise/confirmations/new.html.haml +++ b/app/views/devise/confirmations/new.html.haml @@ -1,12 +1,16 @@ - content_for :title, "Resend confirmation instructions" -= form_for(resource, :as => resource_name, :url => confirmation_path(resource_name), :html => { :method => :post }) do |f| += form_for(resource, :as => resource_name, :url => confirmation_path(resource_name), :html => { :method => :post, :class => 'form-horizontal', :role => 'form' }) do |f| = devise_error_messages! %p Enter either your login name or your email address to resend the confirmation email. - = f.label :login - = f.text_field :login - = f.submit "Resend confirmation instructions" + .form-group + = f.label :login, :class => 'control-label col-md-2' + .col-md-8 + = f.text_field :login, :class => 'form-control' + .form-group + .form-actions.col-md-offset-2.col-md-8 + = f.submit "Resend confirmation instructions", :class => 'btn btn-primary' = render "devise/shared/links" diff --git a/app/views/devise/passwords/edit.html.haml b/app/views/devise/passwords/edit.html.haml index 2860c6b22..8e31924e5 100644 --- a/app/views/devise/passwords/edit.html.haml +++ b/app/views/devise/passwords/edit.html.haml @@ -1,20 +1,21 @@ - content_for :title, "Change your password" -= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :put }) do |f| += form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :put, :class => 'form-horizontal', :role => 'form' }) do |f| = devise_error_messages! = f.hidden_field :reset_password_token - %div - = f.label :password, "New password" - %br - = f.password_field :password + .form-group + = f.label :password, "New password", :class => 'control-label col-md-2' + .col-md-8 + = f.password_field :password, :class => 'form-control' - %div - = f.label :password_confirmation, "Confirm new password" - %br - = f.password_field :password_confirmation + .form-group + = f.label :password_confirmation, "Confirm new password", :class => 'control-label col-md-2' + .col-md-8 + = f.password_field :password_confirmation, :class => 'form-control' - %div - = f.submit "Change my password" + .form-group + .form-actions.col-md-offset-2.col-md-8 + = f.submit "Change my password", :class => 'btn btn-primary' = render "devise/shared/links" diff --git a/app/views/devise/passwords/new.html.haml b/app/views/devise/passwords/new.html.haml index 2027975d0..b32607760 100644 --- a/app/views/devise/passwords/new.html.haml +++ b/app/views/devise/passwords/new.html.haml @@ -1,14 +1,14 @@ - content_for :title, "Forgot your password?" -= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :post }) do |f| - = devise_error_messages! += form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :post, :class => 'form-horizontal', :role => 'form' }) do |f| + = devise_error_messages! - %div - = f.label :login - %br - = f.text_field :login + .form-group + = f.label :login, :class => 'control-label col-md-2' + .col-md-8 + = f.text_field :login, :class => 'form-control' + .form-group + .form-actions.col-md-offset-2.col-md-8 + = f.submit "Send me reset password instructions", :class => 'btn btn-primary' - %div - = f.submit "Send me reset password instructions" - -= render "devise/shared/links" += render "devise/shared/links" diff --git a/app/views/devise/unlocks/new.html.haml b/app/views/devise/unlocks/new.html.haml index f545cd4e7..77d726806 100644 --- a/app/views/devise/unlocks/new.html.haml +++ b/app/views/devise/unlocks/new.html.haml @@ -1,14 +1,14 @@ - content_for :title, "Resend unlock instructions" -= form_for(resource, :as => resource_name, :url => unlock_path(resource_name), :html => { :method => :post }) do |f| += form_for(resource, :as => resource_name, :url => unlock_path(resource_name), :html => { :method => :post, :class => 'form-horizontal', :role => 'form' }) do |f| = devise_error_messages! - %div - = f.label :email - %br - = f.email_field :email - - %div - = f.submit "Resend unlock instructions" + .form-group + = f.label :email, :class => 'control-label col-md-2' + .col-md-8 + = f.email_field :email, :class => 'form-control' + .form-group + .form-actions.col-md-offset-2.col-md-8 + = f.submit "Resend unlock instructions", :class => 'btn btn-primary' = render "devise/shared/links"