Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (!this.isProperties) {
- // Set the validators for the create/update property form
- this.instructionPropertyForm = this.fb.group({
- access_type: [this.accessType, Validators.required],
- address_1: ["", Validators.required],
- address_2: [""],
- town: ["", Validators.required],
- county: [""],
- postcode: ["", [Validators.required, Validators.pattern(/^(GIR 0AA)|((([A-Z][0-9][0-9]?)|(([A-Z][A-HJ-Y][0-9][0-9]?)|(([A-Z][0-9][A-Z])|([A-Z][A-HJ-Y][0-9]?[A-Z])))) [0-9][A-Z]{2})$/)]],
- // capscan_uprn: [""],
- // landmark_uprn: [""],
- longitude: [""],
- latitude: [""],
- key_collect: [""],
- spos: [""],
- keysafe_code: [""],
- key_collect_address_1: [""],
- key_collect_address_2: [""],
- key_collect_postcode: [""],
- access_gained_type: [""],
- occupied: [""],
- tenant_contact_name: [""],
- tenant_contact_phone: [""],
- tenant_contact_mobile: [""],
- tenant_contact_email: [""],
- tenant_contactable: [""],
- boiler_location: [""],
- electric_meter_location: [""],
- water_meter_location: [""],
- gas_meter_location: [""],
- pets: [""],
- loft_access: [""],
- floor_area: [""],
- number_of_bedrooms: ["", Validators.required],
- property_type_id: ["", Validators.required],
- total_rooms: [""],
- property_status: ["", Validators.required],
- customer_type_id: ["", Validators.required],
- vibrant_notes: [""],
- client_notes: [""],
- purchase_order_number: [""],
- order_reference: [""]
- });
- } else {
- // Set the validators for the create/update property form
- this.instructionPropertyForm = this.fb.group({
- address_1: ["", Validators.required],
- address_2: [""],
- town: ["", Validators.required],
- county: [""],
- postcode: ["", [Validators.required, Validators.pattern(/^(GIR 0AA)|((([A-Z][0-9][0-9]?)|(([A-Z][A-HJ-Y][0-9][0-9]?)|(([A-Z][0-9][A-Z])|([A-Z][A-HJ-Y][0-9]?[A-Z])))) [0-9][A-Z]{2})$/)]],
- capscan_uprn: [""],
- landmark_uprn: [""],
- longitude: [""],
- latitude: [""],
- floor_area: [""],
- number_of_bedrooms: [""],
- property_type_id: [""],
- total_rooms: [""],
- // property_status: [""],
- // customer_type_id: [""],
- boiler_location: [""],
- electric_meter_location: [""],
- water_meter_location: [""],
- gas_meter_location: [""],
- pets: [""],
- occupied: [""],
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement