Ask about community activities in building

fixes #774
This commit is contained in:
Mateusz Konieczny 2022-02-22 21:30:26 +01:00
parent 3274ecd024
commit abc3ea3cc5
3 changed files with 57 additions and 0 deletions

View File

@ -284,6 +284,18 @@ export const buildingAttributesConfig = valueType<DataFieldConfig>()({ /* eslint
edit: true,
verify: false
},
community_activities_current: {
edit: true,
verify: false
},
community_activities_always: {
edit: true,
verify: false
},
community_activities_not_anymore: {
edit: true,
verify: false
},
community_public_ownership: {
edit: true,
verify: true

View File

@ -91,6 +91,33 @@ const CommunityView: React.FunctionComponent<CategoryViewProps> = (props) => {
onChange={props.onChange}
mode={props.mode}
/>
<LogicalDataEntry
slug='community_activities_current'
title={dataFields.community_activities_current.title}
tooltip={dataFields.community_activities_current.tooltip}
value={props.building.community_activities_current}
onChange={props.onChange}
mode={props.mode}
/>
<LogicalDataEntry
slug='community_activities_always'
title={dataFields.community_activities_always.title}
tooltip={dataFields.community_activities_always.tooltip}
value={props.building.community_activities_always}
onChange={props.onChange}
mode={props.mode}
/>
<LogicalDataEntry
slug='community_activities_not_anymore'
title={dataFields.community_activities_not_anymore.title}
tooltip={dataFields.community_activities_not_anymore.tooltip}
value={props.building.community_activities_not_anymore}
onChange={props.onChange}
mode={props.mode}
/>
{/* TODO: dates */}
{
// props.building.community_activities === true &&

View File

@ -521,6 +521,24 @@ export const dataFields = { /* eslint-disable @typescript-eslint/camelcase */
tooltip: "E.g. youth club, place of worship, GP surgery, pub",
example: true
},
community_activities_current: {
category: Category.Community,
title: "Are activities open to the community currently taking place in the building?",
tooltip: "E.g. youth club, place of worship, GP surgery, pub",
example: true
},
community_activities_always: {
category: Category.Community,
title: "Has the building always been used for community activities?",
tooltip: "E.g. youth club, place of worship, GP surgery, pub",
example: true
},
community_activities_not_anymore: {
category: Category.Community,
title: "Has the building been used in the past for community activities but isn't now?",
tooltip: "E.g. youth club, place of worship, GP surgery, pub",
example: true
},
// community_activities_dates: {
// category: Category.Community,
// title: "When was this building used for community activities?"