Browse Source

Add back the headers

pull/2541/head
Kat 2 years ago
parent
commit
7d82c5350b
  1. 1
      app/models/form/sales/pages/deposit.rb
  2. 1
      app/models/form/sales/pages/discount.rb
  3. 1
      app/models/form/sales/pages/equity.rb
  4. 1
      app/models/form/sales/pages/value_shared_ownership.rb
  5. 2
      spec/models/form/sales/pages/deposit_spec.rb
  6. 2
      spec/models/form/sales/pages/discount_spec.rb
  7. 2
      spec/models/form/sales/pages/equity_spec.rb
  8. 2
      spec/models/form/sales/pages/value_shared_ownership_spec.rb

1
app/models/form/sales/pages/deposit.rb

@ -3,6 +3,7 @@ class Form::Sales::Pages::Deposit < ::Form::Page
super(id, hsh, subsection) super(id, hsh, subsection)
@ownershipsch = ownershipsch @ownershipsch = ownershipsch
@optional = optional @optional = optional
@header = "About the deposit"
end end
def questions def questions

1
app/models/form/sales/pages/discount.rb

@ -2,6 +2,7 @@ class Form::Sales::Pages::Discount < ::Form::Page
def initialize(id, hsh, subsection, optional:) def initialize(id, hsh, subsection, optional:)
super(id, hsh, subsection) super(id, hsh, subsection)
@optional = optional @optional = optional
@header = "About the deposit"
end end
def questions def questions

1
app/models/form/sales/pages/equity.rb

@ -2,6 +2,7 @@ class Form::Sales::Pages::Equity < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "equity" @id = "equity"
@header = "About the price of the property"
end end
def questions def questions

1
app/models/form/sales/pages/value_shared_ownership.rb

@ -2,6 +2,7 @@ class Form::Sales::Pages::ValueSharedOwnership < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "value_shared_ownership" @id = "value_shared_ownership"
@header = "About the price of the property"
end end
def questions def questions

2
spec/models/form/sales/pages/deposit_spec.rb

@ -24,7 +24,7 @@ RSpec.describe Form::Sales::Pages::Deposit, type: :model do
end end
it "has the correct header" do it "has the correct header" do
expect(page.header).to be_nil expect(page.header).to eq("About the deposit")
end end
it "has the correct description" do it "has the correct description" do

2
spec/models/form/sales/pages/discount_spec.rb

@ -24,7 +24,7 @@ RSpec.describe Form::Sales::Pages::Discount, type: :model do
end end
it "has the correct header" do it "has the correct header" do
expect(page.header).to be_nil expect(page.header).to eq("About the deposit")
end end
it "has the correct description" do it "has the correct description" do

2
spec/models/form/sales/pages/equity_spec.rb

@ -20,7 +20,7 @@ RSpec.describe Form::Sales::Pages::Equity, type: :model do
end end
it "has the correct header" do it "has the correct header" do
expect(page.header).to be_nil expect(page.header).to eq("About the price of the property")
end end
it "has the correct description" do it "has the correct description" do

2
spec/models/form/sales/pages/value_shared_ownership_spec.rb

@ -20,7 +20,7 @@ RSpec.describe Form::Sales::Pages::ValueSharedOwnership, type: :model do
end end
it "has the correct header" do it "has the correct header" do
expect(page.header).to be_nil expect(page.header).to eq("About the price of the property")
end end
it "has the correct description" do it "has the correct description" do

Loading…
Cancel
Save