Browse Source

CLDC-1861 Update options order for lead tenant's working situation (#1289)

* Switch the first two options so Full time comes before Part time

* Enable dates validations on staging
pull/1309/head
kosiakkatrina 2 years ago committed by GitHub
parent
commit
b973e8348e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/models/form/lettings/questions/working_situation1.rb
  2. 6
      config/initializers/feature_toggle.rb

2
app/models/form/lettings/questions/working_situation1.rb

@ -11,8 +11,8 @@ class Form::Lettings::Questions::WorkingSituation1 < ::Form::Question
end
ANSWER_OPTIONS = {
"2" => { "value" => "Part-time – Less than 30 hours" },
"1" => { "value" => "Full-time – 30 hours or more" },
"2" => { "value" => "Part-time – Less than 30 hours" },
"7" => { "value" => "Full-time student" },
"3" => { "value" => "In government training into work, such as New Deal" },
"4" => { "value" => "Jobseeker" },

6
config/initializers/feature_toggle.rb

@ -1,14 +1,14 @@
class FeatureToggle
def self.startdate_two_week_validation_enabled?
Rails.env.production? || Rails.env.test?
Rails.env.production? || Rails.env.test? || Rails.env.staging?
end
def self.startdate_collection_window_validation_enabled?
Rails.env.production? || Rails.env.test?
Rails.env.production? || Rails.env.test? || Rails.env.staging?
end
def self.saledate_collection_window_validation_enabled?
Rails.env.production? || Rails.env.test?
Rails.env.production? || Rails.env.test? || Rails.env.staging?
end
def self.sales_log_enabled?

Loading…
Cancel
Save