You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							35 lines
						
					
					
						
							1.0 KiB
						
					
					
				
			
		
		
	
	
							35 lines
						
					
					
						
							1.0 KiB
						
					
					
				| class Form::Lettings::Pages::RentValueCheck < ::Form::Page | |
|   def initialize(id, hsh, subsection) | |
|     super(id, hsh, subsection) | |
|     @depends_on = [{ "rent_soft_validation_triggered?" => true }] | |
|     @copy_key = "lettings.soft_validations.rent_value_check" | |
|     @title_text = { | |
|       "translation" => "forms.#{form.start_date.year}.#{@copy_key}.title_text", | |
|       "arguments" => [ | |
|         { | |
|           "key" => "brent", | |
|           "label" => true, | |
|           "i18n_template" => "brent", | |
|         }, | |
|       ], | |
|     } | |
|     @informative_text = { | |
|       "translation" => "forms.#{form.start_date.year}.#{@copy_key}.informative_text", | |
|       "arguments" => [ | |
|         { | |
|           "key" => "rent_soft_validation_higher_or_lower_text", | |
|           "label" => false, | |
|           "i18n_template" => "higher_or_lower", | |
|         }, | |
|       ], | |
|     } | |
|   end | |
|  | |
|   def questions | |
|     @questions ||= [Form::Lettings::Questions::RentValueCheck.new(nil, nil, self)] | |
|   end | |
|  | |
|   def interruption_screen_question_ids | |
|     %w[brent period startdate uprn postcode_full la beds rent_type needstype] | |
|   end | |
| end
 | |
| 
 |