mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-01-25 09:47:55 -05:00
Fixed devise forms to make them b3ish and pretty
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user