add work_carried_out field
This commit is contained in:
parent
3b42d1b8ef
commit
8923213f7c
@ -10,7 +10,10 @@ import { CategoryViewProps } from './category-view-props';
|
|||||||
/**
|
/**
|
||||||
* Team view/edit section
|
* Team view/edit section
|
||||||
*/
|
*/
|
||||||
const TeamView: React.FunctionComponent<CategoryViewProps> = (props) => (
|
const TeamView: React.FunctionComponent<CategoryViewProps> = (props) => {
|
||||||
|
const building = props.building;
|
||||||
|
const currentBuildingConstructionYear = building.date_year || undefined;
|
||||||
|
return (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<InfoBox msg="Can you help us capture information on who built the current building?"></InfoBox>
|
<InfoBox msg="Can you help us capture information on who built the current building?"></InfoBox>
|
||||||
<SelectDataEntry
|
<SelectDataEntry
|
||||||
@ -24,8 +27,15 @@ const TeamView: React.FunctionComponent<CategoryViewProps> = (props) => (
|
|||||||
placeholder={dataFields.is_extension.example}
|
placeholder={dataFields.is_extension.example}
|
||||||
options={dataFields.is_extension.items}
|
options={dataFields.is_extension.items}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<NumericDataEntry
|
||||||
|
slug='work_carried_out'
|
||||||
|
title={dataFields.work_carried_out.title}
|
||||||
|
value={currentBuildingConstructionYear}
|
||||||
|
/>
|
||||||
</Fragment>
|
</Fragment>
|
||||||
);
|
);
|
||||||
|
};
|
||||||
const TeamContainer = withCopyEdit(TeamView);
|
const TeamContainer = withCopyEdit(TeamView);
|
||||||
|
|
||||||
export default TeamContainer;
|
export default TeamContainer;
|
||||||
|
@ -645,6 +645,11 @@ export const dataFields = { /* eslint-disable @typescript-eslint/camelcase */
|
|||||||
items: [
|
items: [
|
||||||
"A major extension"
|
"A major extension"
|
||||||
],
|
],
|
||||||
|
},
|
||||||
|
work_carried_out: {
|
||||||
|
category: Category.Team,
|
||||||
|
title: "When was the work carried out?",
|
||||||
|
tooltip: "Best estimate"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user