Browse Source

CLDC-3650: Pull out copy for sales setup section questions to translation file

pull/2694/head
Rachael Booth 9 months ago committed by Manny Dinssa
parent
commit
d1ea1fc62f
  1. 1
      app/models/form/sales/pages/buyer_company.rb
  2. 1
      app/models/form/sales/pages/buyer_live.rb
  3. 1
      app/models/form/sales/pages/created_by.rb
  4. 1
      app/models/form/sales/pages/joint_purchase.rb
  5. 1
      app/models/form/sales/pages/managing_organisation.rb
  6. 1
      app/models/form/sales/pages/number_joint_buyers.rb
  7. 1
      app/models/form/sales/pages/ownership_scheme.rb
  8. 1
      app/models/form/sales/pages/owning_organisation.rb
  9. 1
      app/models/form/sales/pages/purchaser_code.rb
  10. 1
      app/models/form/sales/pages/sale_date.rb

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

@ -2,6 +2,7 @@ class Form::Sales::Pages::BuyerCompany < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "buyer_company" @id = "buyer_company"
@copy_key = "sales.setup.companybuy"
@depends_on = [{ @depends_on = [{
"outright_sale?" => true, "outright_sale?" => true,
}] }]

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

@ -2,6 +2,7 @@ class Form::Sales::Pages::BuyerLive < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "buyer_live" @id = "buyer_live"
@copy_key = "sales.setup.buylivein"
@depends_on = [{ @depends_on = [{
"companybuy" => 2, "companybuy" => 2,
}] }]

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

@ -2,6 +2,7 @@ class Form::Sales::Pages::CreatedBy < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "assigned_to" @id = "assigned_to"
@copy_key = "assigned_to_id"
end end
def questions def questions

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

@ -2,6 +2,7 @@ class Form::Sales::Pages::JointPurchase < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "joint_purchase" @id = "joint_purchase"
@copy_key = "sales.setup.jointpur"
@depends_on = [ @depends_on = [
{ "ownershipsch" => 1 }, { "ownershipsch" => 1 },
{ "ownershipsch" => 2 }, { "ownershipsch" => 2 },

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

@ -2,6 +2,7 @@ class Form::Sales::Pages::ManagingOrganisation < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "managing_organisation" @id = "managing_organisation"
@copy_key = "sales.setup.managing_organisation_id"
end end
def questions def questions

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

@ -2,6 +2,7 @@ class Form::Sales::Pages::NumberJointBuyers < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "number_joint_buyers" @id = "number_joint_buyers"
@copy_key = "sales.setup.jointmore"
@depends_on = [{ @depends_on = [{
"joint_purchase?" => true, "joint_purchase?" => true,
}] }]

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

@ -2,6 +2,7 @@ class Form::Sales::Pages::OwnershipScheme < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "ownership_scheme" @id = "ownership_scheme"
@copy_key = "sales.setup.ownershipsch"
end end
def questions def questions

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

@ -2,6 +2,7 @@ class Form::Sales::Pages::OwningOrganisation < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "owning_organisation" @id = "owning_organisation"
@copy_key = "sales.setup.owning_organisation_id"
end end
def questions def questions

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

@ -2,6 +2,7 @@ class Form::Sales::Pages::PurchaserCode < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "purchaser_code" @id = "purchaser_code"
@copy_key = "sales.setup.purchid"
end end
def questions def questions

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

@ -2,6 +2,7 @@ class Form::Sales::Pages::SaleDate < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "completion_date" @id = "completion_date"
@copy_key = "sales.setup.saledate"
end end
def questions def questions

Loading…
Cancel
Save