Browse Source
* Refactor log setup into it's own form * Use factory * Run workflow on push to PR * Array matcher on heisenspecpull/672/head
baarkerlounger
3 years ago
committed by
GitHub
16 changed files with 259 additions and 364 deletions
@ -0,0 +1,138 @@
|
||||
{ |
||||
"form_type": "setup", |
||||
"sections": { |
||||
"setup": { |
||||
"label": "Before you start", |
||||
"subsections": { |
||||
"setup": { |
||||
"label": "Set up this lettings log", |
||||
"pages": { |
||||
"needs_type": { |
||||
"header": "", |
||||
"description": "", |
||||
"questions": { |
||||
"needstype": { |
||||
"check_answer_label": "Needs type", |
||||
"header": "What is the needs type?", |
||||
"hint_text": "", |
||||
"type": "radio", |
||||
"answer_options": { |
||||
"1": { |
||||
"value": "General needs" |
||||
}, |
||||
"2": { |
||||
"value": "Supported housing" |
||||
} |
||||
} |
||||
} |
||||
}, |
||||
"derived": true, |
||||
"depends_on": [ |
||||
{ |
||||
"supported_housing_schemes_enabled?" : true |
||||
} |
||||
] |
||||
}, |
||||
"renewal": { |
||||
"header": "", |
||||
"description": "", |
||||
"questions": { |
||||
"renewal": { |
||||
"check_answer_label": "Property renewal", |
||||
"header": "Is this letting a renewal?", |
||||
"hint_text": "A renewal is a letting to the same tenant in the same property.", |
||||
"type": "radio", |
||||
"answer_options": { |
||||
"1": { |
||||
"value": "Yes" |
||||
}, |
||||
"0": { |
||||
"value": "No" |
||||
} |
||||
} |
||||
} |
||||
} |
||||
}, |
||||
"tenancy_start_date": { |
||||
"header": "", |
||||
"description": "", |
||||
"questions": { |
||||
"startdate": { |
||||
"check_answer_label": "Tenancy start date", |
||||
"header": "What is the tenancy start date?", |
||||
"type": "date" |
||||
} |
||||
} |
||||
}, |
||||
"rent_type": { |
||||
"header": "", |
||||
"description": "", |
||||
"questions": { |
||||
"rent_type": { |
||||
"check_answer_label": "Rent type", |
||||
"header": "What is the rent type?", |
||||
"hint_text": "", |
||||
"type": "radio", |
||||
"answer_options": { |
||||
"1": { |
||||
"value": "Affordable Rent" |
||||
}, |
||||
"2": { |
||||
"value": "London Affordable Rent" |
||||
}, |
||||
"4": { |
||||
"value": "London Living Rent" |
||||
}, |
||||
"3": { |
||||
"value": "Rent to Buy" |
||||
}, |
||||
"0": { |
||||
"value": "Social Rent" |
||||
}, |
||||
"5": { |
||||
"value": "Other intermediate rent product" |
||||
} |
||||
}, |
||||
"conditional_for": { |
||||
"irproduct_other": [5] |
||||
} |
||||
}, |
||||
"irproduct_other": { |
||||
"check_answer_label": "Product name", |
||||
"header": "Name of rent product", |
||||
"type": "text" |
||||
} |
||||
} |
||||
}, |
||||
"tenant_code": { |
||||
"header": "", |
||||
"description": "", |
||||
"questions": { |
||||
"tenant_code": { |
||||
"check_answer_label": "Tenant code", |
||||
"header": "What is the tenant code?", |
||||
"hint_text": "This is how you usually refer to this tenancy on your own systems.", |
||||
"type": "text", |
||||
"width": 10 |
||||
} |
||||
} |
||||
}, |
||||
"property_reference": { |
||||
"header": "", |
||||
"description": "", |
||||
"questions": { |
||||
"propcode": { |
||||
"check_answer_label": "Property reference", |
||||
"header": "What is the property reference?", |
||||
"hint_text": "This is how you usually refer to this property on your own systems.", |
||||
"type": "text", |
||||
"width": 10 |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,71 @@
|
||||
{ |
||||
"form_type": "setup", |
||||
"sections": { |
||||
"setup": { |
||||
"label": "Before you start", |
||||
"subsections": { |
||||
"setup": { |
||||
"label": "Set up this lettings log", |
||||
"pages": { |
||||
"renewal": { |
||||
"header": "", |
||||
"description": "", |
||||
"questions": { |
||||
"renewal": { |
||||
"check_answer_label": "Property renewal", |
||||
"header": "Is this a renewal to the same tenant in the same property?", |
||||
"hint_text": "", |
||||
"type": "radio", |
||||
"answer_options": { |
||||
"1": "Yes", |
||||
"0": "No" |
||||
} |
||||
} |
||||
} |
||||
}, |
||||
"startdate": { |
||||
"header": "", |
||||
"description": "", |
||||
"questions": { |
||||
"startdate": { |
||||
"check_answer_label": "Tenancy start date", |
||||
"header": "What is the tenancy start date?", |
||||
"hint_text": "For example, 27 3 2007", |
||||
"type": "date" |
||||
} |
||||
} |
||||
}, |
||||
"about_this_letting": { |
||||
"header": "Tell us about this letting", |
||||
"description": "", |
||||
"questions": { |
||||
"rent_type": { |
||||
"check_answer_label": "Rent type", |
||||
"header": "What is the rent type?", |
||||
"hint_text": "", |
||||
"type": "radio", |
||||
"answer_options": { |
||||
"0": "Social rent", |
||||
"1": "Affordable rent", |
||||
"2": "London Affordable rent", |
||||
"3": "Rent to buy", |
||||
"4": "London living rent", |
||||
"5": "Other intermediate rent product" |
||||
}, |
||||
"conditional_for": { |
||||
"intermediate_rent_product_name": [5] |
||||
} |
||||
}, |
||||
"intermediate_rent_product_name": { |
||||
"check_answer_label": "Product name", |
||||
"header": "What is intermediate rent product name?", |
||||
"type": "text" |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue