add landowner and landowner_source_link
This commit is contained in:
parent
e00621df41
commit
4c0e036e94
@ -351,6 +351,14 @@ export const buildingAttributesConfig = valueType<DataFieldConfig>()({ /* eslint
|
||||
edit: true,
|
||||
verify: true
|
||||
},
|
||||
landowner: {
|
||||
edit: true,
|
||||
verify: true
|
||||
},
|
||||
landowner_source_link: {
|
||||
edit: true,
|
||||
verify: true
|
||||
},
|
||||
designers: {
|
||||
edit: true,
|
||||
verify: true
|
||||
|
@ -22,6 +22,45 @@ const TeamView: React.FunctionComponent<CategoryViewProps> = (props) => {
|
||||
return (
|
||||
<form>
|
||||
<InfoBox msg="Can you help us capture information on who built the current building?"></InfoBox>
|
||||
<MultiDataEntry
|
||||
title={dataFields.landowner.title}
|
||||
slug="landowner"
|
||||
value={props.building.landowner}
|
||||
mode={props.mode}
|
||||
copy={props.copy}
|
||||
onChange={props.onChange}
|
||||
tooltip={dataFields.landowner.tooltip}
|
||||
placeholder=""
|
||||
editableEntries={true}
|
||||
/>
|
||||
<Verification
|
||||
slug="developelandownerr_name"
|
||||
allow_verify={props.user !== undefined && props.building.landowner !== null && !props.edited}
|
||||
onVerify={props.onVerify}
|
||||
user_verified={props.user_verified.hasOwnProperty("develolandownerer_name")}
|
||||
user_verified_as={props.user_verified.landowner}
|
||||
verified_count={props.building.verified.landowner}
|
||||
/>
|
||||
<MultiDataEntry
|
||||
title={dataFields.landowner_source_link.title}
|
||||
slug="landowner_source_link"
|
||||
value={props.building.landowner_source_link}
|
||||
mode={props.mode}
|
||||
copy={props.copy}
|
||||
onChange={props.onChange}
|
||||
tooltip={dataFields.landowner_source_link.tooltip}
|
||||
placeholder="https://..."
|
||||
editableEntries={true}
|
||||
isUrl={true}
|
||||
/>
|
||||
<Verification
|
||||
slug="landowner_source_link"
|
||||
allow_verify={props.user !== undefined && props.building.landowner_source_link !== null && !props.edited}
|
||||
onVerify={props.onVerify}
|
||||
user_verified={props.user_verified.hasOwnProperty("landowner_source_link")}
|
||||
user_verified_as={props.user_verified.landowner_source_link}
|
||||
verified_count={props.building.verified.landowner_source_link}
|
||||
/>
|
||||
<NumericDataEntry
|
||||
slug='date_year'
|
||||
title={dataFields.date_year.title}
|
||||
|
@ -689,6 +689,18 @@ export const dataFields = { /* eslint-disable @typescript-eslint/camelcase */
|
||||
tooltip: "URL for source for developer(s)",
|
||||
example: ["", "", ""],
|
||||
},
|
||||
landowner: {
|
||||
category: Category.Team,
|
||||
title: "Landowner(s) at time of construction",
|
||||
tooltip: "Free text. First name, space, then Last name",
|
||||
example: ["", "", ""],
|
||||
},
|
||||
landowner_source_link: {
|
||||
category: Category.Team,
|
||||
title: "Source links for landowner(s)",
|
||||
tooltip: "URL for source for landowner(s)",
|
||||
example: ["", "", ""],
|
||||
},
|
||||
designers: {
|
||||
category: Category.Team,
|
||||
title: "Who were the main designer(s)?",
|
||||
|
Loading…
Reference in New Issue
Block a user