Add data entry groups to planning category
This commit is contained in:
parent
4320e20952
commit
354d8a6f96
@ -4,6 +4,7 @@ import withCopyEdit from '../data-container';
|
|||||||
import DataEntry from '../data-components/data-entry';
|
import DataEntry from '../data-components/data-entry';
|
||||||
import CheckboxDataEntry from '../data-components/checkbox-data-entry';
|
import CheckboxDataEntry from '../data-components/checkbox-data-entry';
|
||||||
import SelectDataEntry from '../data-components/select-data-entry';
|
import SelectDataEntry from '../data-components/select-data-entry';
|
||||||
|
import { DataEntryGroup } from '../data-components/data-entry-group';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Planning view/edit section
|
* Planning view/edit section
|
||||||
@ -18,6 +19,7 @@ const PlanningView = (props) => (
|
|||||||
copy={props.copy}
|
copy={props.copy}
|
||||||
onChange={props.onChange}
|
onChange={props.onChange}
|
||||||
/>
|
/>
|
||||||
|
<DataEntryGroup name="Listing and protections" >
|
||||||
<CheckboxDataEntry
|
<CheckboxDataEntry
|
||||||
title="In a conservation area?"
|
title="In a conservation area?"
|
||||||
slug="planning_in_conservation_area"
|
slug="planning_in_conservation_area"
|
||||||
@ -167,6 +169,8 @@ const PlanningView = (props) => (
|
|||||||
copy={props.copy}
|
copy={props.copy}
|
||||||
onChange={props.onChange}
|
onChange={props.onChange}
|
||||||
/>
|
/>
|
||||||
|
</DataEntryGroup>
|
||||||
|
<DataEntryGroup name="Demolition and demolition history">
|
||||||
<CheckboxDataEntry
|
<CheckboxDataEntry
|
||||||
title="Is the building proposed for demolition?"
|
title="Is the building proposed for demolition?"
|
||||||
slug="planning_demolition_proposed"
|
slug="planning_demolition_proposed"
|
||||||
@ -194,6 +198,7 @@ const PlanningView = (props) => (
|
|||||||
onChange={props.onChange}
|
onChange={props.onChange}
|
||||||
disabled={true}
|
disabled={true}
|
||||||
/>
|
/>
|
||||||
|
</DataEntryGroup>
|
||||||
</Fragment>
|
</Fragment>
|
||||||
)
|
)
|
||||||
const PlanningContainer = withCopyEdit(PlanningView);
|
const PlanningContainer = withCopyEdit(PlanningView);
|
||||||
|
Loading…
Reference in New Issue
Block a user