cvhage structure of planning menu

This commit is contained in:
Mateusz Konieczny 2022-11-07 18:05:07 +01:00
parent f63ff98268
commit ea79990ab4

View File

@ -53,21 +53,20 @@ const PlanningView: React.FunctionComponent<CategoryViewProps> = (props) => {
<InfoBox type='warning'>
This section is under development as part of the project CLPV Tool. For more details and progress <a href="https://github.com/colouring-cities/manual/wiki/G.-Data-capture-methods">read here</a>.
</InfoBox>
<DataEntryGroup name="Official planning data" collapsed={false} >
<DataEntryGroup name="Active planning applications" collapsed={true} >
<DataEntryGroup name="Planning application information" collapsed={false} >
<DataEntryGroup name="Active applications (official data)" collapsed={true} >
<PlanningDataOfficialDataEntry
shownData={props.building.planning_data ? props.building.planning_data.filter(item => isArchived(item) == false) : []}
allEntryCount={props.building.planning_data ? props.building.planning_data.length : 0}
/>
</DataEntryGroup>
<DataEntryGroup name="No activity in the last year" collapsed={true} >
<DataEntryGroup name="Historical applications (official data)" collapsed={true} >
<PlanningDataOfficialDataEntry
shownData={props.building.planning_data ? props.building.planning_data.filter(item => isArchived(item)) : []}
allEntryCount={props.building.planning_data ? props.building.planning_data.length : 0}
/>
</DataEntryGroup>
</DataEntryGroup>
<DataEntryGroup name="Crowdsourced planning application data" collapsed={false} >
<DataEntryGroup name="Crowdsourced info on planning applications" collapsed={false} >
<CheckboxDataEntry
title="Has the work on this site been completed?"
slug="planning_live_application"
@ -86,6 +85,7 @@ const PlanningView: React.FunctionComponent<CategoryViewProps> = (props) => {
// "type": "year_estimator"
/>
</DataEntryGroup>
</DataEntryGroup>
<DataEntryGroup name="Designation/protection" collapsed={false} >
<DataEntryGroup name="Conservation" collapsed={false} >
<DataEntry