mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-18 21:56:55 -04:00
Merge branch 'dev' of https://github.com/Growstuff/growstuff into crop-suggest
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"
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
-content_for :title, "#{ENV['GROWSTUFF_SITE_NAME']} members near #{@place}"
|
||||
|
||||
= form_tag(search_places_path, :method => :get, :class => 'form-inline') do
|
||||
= label_tag :place, "Change location:", :class => 'control-label'
|
||||
= text_field_tag :new_place
|
||||
%form{:action => search_places_path, :method => :get, :class => 'form-inline', :role => 'form'}
|
||||
.form-group
|
||||
= label_tag :new_place, "Change location:", :class => 'sr-only'
|
||||
= text_field_tag :new_place, '', :class => 'form-control', :placeholder => "New location..."
|
||||
= submit_tag "Search", :class => 'btn btn-primary'
|
||||
%br/
|
||||
|
||||
%div#placesmap{ :style => "height:300px"}
|
||||
|
||||
|
||||
@@ -18,10 +18,8 @@ feature "crop wranglers" do
|
||||
|
||||
within '.crop_wranglers' do
|
||||
expect(page).to have_content 'Crop Wranglers:'
|
||||
crop_wranglers.each_with_index do |crop_wrangler, index|
|
||||
link = find(".crop_wrangler:nth-child(#{index + 1}) a")
|
||||
expect(link.text).to eq(crop_wrangler.login_name)
|
||||
expect(link['href']).to eq(member_path(crop_wrangler))
|
||||
crop_wranglers.each do |crop_wrangler|
|
||||
page.should have_link crop_wrangler.login_name, :href => member_path(crop_wrangler)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user