add developer_type
This commit is contained in:
parent
d2c725859c
commit
50621b48b0
@ -52,6 +52,15 @@ const TeamView: React.FunctionComponent<CategoryViewProps> = (props) => {
|
||||
user_verified_as={props.user_verified.date_year}
|
||||
verified_count={props.building.verified.date_year}
|
||||
/>
|
||||
<SelectDataEntry
|
||||
slug='developer_type'
|
||||
title={dataFields.developer_type.title}
|
||||
value={props.building.developer_type}
|
||||
options={dataFields.developer_type.items}
|
||||
onChange={props.onChange}
|
||||
mode={props.mode}
|
||||
copy={props.copy}
|
||||
/>
|
||||
</Fragment>
|
||||
);
|
||||
};
|
||||
@ -90,6 +99,15 @@ const TeamView: React.FunctionComponent<CategoryViewProps> = (props) => {
|
||||
user_verified_as={props.user_verified.extension_year}
|
||||
verified_count={props.building.verified.extension_year}
|
||||
/>
|
||||
<SelectDataEntry
|
||||
slug='developer_type'
|
||||
title={dataFields.developer_type.title}
|
||||
value={props.building.developer_type}
|
||||
options={dataFields.developer_type.items}
|
||||
onChange={props.onChange}
|
||||
mode={props.mode}
|
||||
copy={props.copy}
|
||||
/>
|
||||
</Fragment>
|
||||
);
|
||||
};
|
||||
|
@ -653,7 +653,20 @@ export const dataFields = { /* eslint-disable @typescript-eslint/camelcase */
|
||||
tooltip: "This field is the same as 'Year built (best estimate)' in the Age category'",
|
||||
tooltip_extension: "This should be the year the extension was built, not the original building",
|
||||
example: 2020
|
||||
}
|
||||
},
|
||||
developer_type: {
|
||||
category: Category.Community,
|
||||
title: "What type of developer built the building?",
|
||||
items: [
|
||||
"State",
|
||||
"Charity",
|
||||
"Community/Cooperative",
|
||||
"Other non-profit body",
|
||||
"Private (individual)",
|
||||
"Private (company/estate)",
|
||||
"Other"
|
||||
]
|
||||
},
|
||||
};
|
||||
|
||||
export const allFieldsConfig = {...dataFields, ...buildingUserFields};
|
Loading…
Reference in New Issue
Block a user