repeat community_expected_planning_application in planning section

This commit is contained in:
Mateusz Konieczny 2022-10-05 19:56:20 +02:00
parent 3f7c7d5d6e
commit 0d853f8e6e

View File

@ -1,11 +1,13 @@
import React, { Fragment } from 'react'; import React, { Fragment } from 'react';
import InfoBox from '../../components/info-box'; import InfoBox from '../../components/info-box';
import { dataFields } from '../../config/data-fields-config';
import CheckboxDataEntry from '../data-components/checkbox-data-entry'; import CheckboxDataEntry from '../data-components/checkbox-data-entry';
import NumericDataEntryWithFormattedLink from '../data-components/numeric-data-entry-with-formatted-link'; import NumericDataEntryWithFormattedLink from '../data-components/numeric-data-entry-with-formatted-link';
import DataEntry from '../data-components/data-entry'; import { buildingUserFields, dataFields } from '../../config/data-fields-config';
import NumericDataEntry from '../data-components/numeric-data-entry'; import NumericDataEntry from '../data-components/numeric-data-entry';
import UserOpinionEntry from '../data-components/user-opinion-data-entry';
import DataEntry from '../data-components/data-entry';
import { DataEntryGroup } from '../data-components/data-entry-group'; import { DataEntryGroup } from '../data-components/data-entry-group';
import SelectDataEntry from '../data-components/select-data-entry'; import SelectDataEntry from '../data-components/select-data-entry';
import Verification from '../data-components/verification'; import Verification from '../data-components/verification';
@ -40,13 +42,16 @@ const PlanningView: React.FunctionComponent<CategoryViewProps> = (props) => (
user_verified_as={props.user_verified.planning_portal_link} user_verified_as={props.user_verified.planning_portal_link}
verified_count={props.building.verified.planning_portal_link} verified_count={props.building.verified.planning_portal_link}
/> />
<CheckboxDataEntry <UserOpinionEntry
title="Do you think a planning application is going to be submitted for this site that is not currently visualised?" slug='community_expected_planning_application'
slug="planning_live_application" title={buildingUserFields.community_expected_planning_application.title}
value={null}
disabled={true} userValue={props.building.community_expected_planning_application}
/>
onChange={props.onSaveChange}
mode={props.mode}
copy={props.copy}
/>
<CheckboxDataEntry <CheckboxDataEntry
title="Are you aware of a planning application that has been recently submitted for this site and is not listed above?" title="Are you aware of a planning application that has been recently submitted for this site and is not listed above?"
slug="planning_live_application" slug="planning_live_application"