Arthur Campbell
fbb67f5fab
CLDC-1923 amend validation message for single ended ranges ( #1253 )
...
* replace range validation with multiple to account for single-ended ranges
* add test for question with min but no max
* add min and max to household count question and remove bespoke validation. Remove code allowing max and no min given this situation does not seem to exist int eh form
* amend minor typo, add back a soft validation that had mysteriously gone missing
2 years ago
kosiakkatrina
8ca9cbfb49
Change numeric validation to display prefixes in error message ( #1227 )
...
* change numeric validation
* Fix test, add delimiter and suffix to the numeric error mesage
2 years ago
natdeanlewissoftwire
9e9ff8a4e2
CLDC-850 Add relationship to buyer 1 validation to sales log ( #1178 )
...
* feat: add sales partner count validation
* test: update tests
* test: add new test
* refactor: DRYing
* feat: DRY general household member validation
* feat: add tests
* db: update
* feat: update shared validations
* test: update tests
* feat: add more validations
* feat: add more validation and update tests
* feat: add update method test
* test: update sales_log factory
* refactor: linting
* feat: remove numbering
* test: update tests
* feat: rename i18n vars, add validations everywhere
* tests: add new tests for new validation occurences
* db: update
* feat: add partner number validation to relevant fields rather than base
* test: update tests
* tests: refactor
* test: update
2 years ago
kosiakkatrina
352dae8efe
CLDC-1468 Add property postcode questions to sales ( #1187 )
...
* Add postcode fields
* Add postcode page and questions
* Add postcode page to the property information subsection
* Only display local authority question if the la is not inferred
* Fix migration
* Move postcode validation
* Infer LA fields from postcode
* infer partial postcodes
2 years ago
Phil Lee
af8e10764f
Validate radio values are possible ( #1137 )
...
* validate radio values are possible
* feature toggle possible radio option validation
2 years ago
kosiakkatrina
409a24b333
Cldc 1609 schemes and location validations ( #1022 )
...
* Add base errors for start date
* Add validation to location
* add validation to scheme id
* update error messages
* wip
* return dates for errors
* choose newest reactivation date
* Add validation to scheme_id
* Fix validations in tests
* add diferent error message
* fix some edge dates and add activating_soon schemes error
* fix error message
* move status_during_startdate into validations files
* rebase
* refactor
* rename method
* remove reverse and update ordering
* Extract scheme validation method
* Refactor validations
* Refactor status validations
2 years ago
baarkerlounger
490ebee4f6
Enable better other field validation labels
3 years ago
baarkerlounger
02cb31947e
Compare as float ( #384 )
3 years ago
baarkerlounger
2ae94b01d7
Generically validate all numeric question min and maxes ( #362 )
...
* Generically validate all numeric question min and maxes
* Update error message
3 years ago
baarkerlounger
0f1f03aa8f
Refactor enums ( #321 )
...
* Remove enums
* Add some convenience methods to make validations more readable
* Gender chars instead of ints
* Remove incorrect API doc info for now
* More convenience methods
* Rename label from value method
* Wrapper hbrentshortfall
* Please the cop
3 years ago
baarkerlounger
22e566e7ae
Refactor Reason for leaving last settled home validations ( #303 )
...
* Refactor other field validation
* Refactor reason for leaving last settled home validations
* Additional tests
* Remove dupe code
* Remove dupe validation
* Armed forces injured validations
* Armed forces
* Major repairs date validations
* Void date validations
3 years ago