mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-24 01:32:40 -04:00
link to new crop request form
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
= collection_select(:harvest, :plant_part_id, PlantPart.all, :id, :name, { :selected => @harvest.plant_part_id }, { :class => 'form-control' })
|
||||
%span.help-block.col-md-8
|
||||
Can't find what you're looking for?
|
||||
= link_to "Request new crops.", Growstuff::Application.config.new_crops_request_link
|
||||
= link_to "Request new crops.", new_crop_path
|
||||
|
||||
.form-group
|
||||
= f.label :harvested_at, 'When?', :class => 'control-label col-md-2'
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
= auto_suggest @planting, :crop, :class => 'form-control', :default => @crop
|
||||
%span.help-inline
|
||||
Can't find what you're looking for?
|
||||
= link_to "Request new crops.", Growstuff::Application.config.new_crops_request_link
|
||||
= link_to "Request new crops.", new_crop_path
|
||||
.form-group
|
||||
= f.label :garden_id, 'Where did you plant it?', :class => 'control-label col-md-2'
|
||||
.col-md-8
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
= auto_suggest @seed, :crop, :class => 'form-control', :default => @crop
|
||||
%span.help-inline
|
||||
Can't find what you're looking for?
|
||||
= link_to "Request new crops.", Growstuff::Application.config.new_crops_request_link
|
||||
= link_to "Request new crops.", new_crop_path
|
||||
.form-group
|
||||
= f.label :quantity, 'Quantity:', :class => 'control-label col-md-2'
|
||||
.col-md-2
|
||||
|
||||
@@ -44,7 +44,6 @@ Growstuff::Application.configure do
|
||||
# config.action_view.raise_on_missing_translations = true
|
||||
|
||||
# Growstuff config
|
||||
config.new_crops_request_link = "http://example.com/not-a-real-url"
|
||||
config.action_mailer.default_url_options = { :host => 'localhost:8080' }
|
||||
|
||||
config.action_mailer.delivery_method = :letter_opener
|
||||
|
||||
@@ -67,7 +67,6 @@ Growstuff::Application.configure do
|
||||
config.active_record.dump_schema_after_migration = false
|
||||
|
||||
# Growstuff configuration
|
||||
config.new_crops_request_link = "http://growstuff.org/posts/skud-20130319-requests-for-new-crops"
|
||||
config.action_mailer.default_url_options = { :host => 'growstuff.org' }
|
||||
|
||||
config.action_mailer.smtp_settings = {
|
||||
|
||||
@@ -69,7 +69,6 @@ Growstuff::Application.configure do
|
||||
config.active_record.dump_schema_after_migration = false
|
||||
|
||||
# Growstuff configuration
|
||||
config.new_crops_request_link = "http://example.com/not-a-real-url"
|
||||
config.action_mailer.default_url_options = { :host => 'staging.growstuff.org' }
|
||||
|
||||
config.action_mailer.smtp_settings = {
|
||||
|
||||
@@ -40,7 +40,6 @@ Growstuff::Application.configure do
|
||||
# config.action_view.raise_on_missing_translations = true
|
||||
|
||||
# Growstuff config
|
||||
config.new_crops_request_link = "http://example.com/not-a-real-url"
|
||||
config.action_mailer.default_url_options = { :host => 'localhost:8080' }
|
||||
|
||||
Growstuff::Application.configure do
|
||||
|
||||
@@ -40,7 +40,6 @@ describe "plantings/edit" do
|
||||
|
||||
it 'includes helpful links for crops and gardens' do
|
||||
assert_select "a[href=#{new_garden_path}]", :text => "Add a garden."
|
||||
assert_select "a[href=#{Growstuff::Application.config.new_crops_request_link}]", :text => "Request new crops."
|
||||
end
|
||||
|
||||
it "chooses the right crop" do
|
||||
|
||||
@@ -41,7 +41,6 @@ describe "plantings/new" do
|
||||
|
||||
it 'includes helpful links for crops and gardens' do
|
||||
assert_select "a[href=#{new_garden_path}]", :text => "Add a garden."
|
||||
assert_select "a[href=#{Growstuff::Application.config.new_crops_request_link}]", :text => "Request new crops."
|
||||
end
|
||||
|
||||
it "selects a garden given in a param" do
|
||||
|
||||
Reference in New Issue
Block a user