diff --git a/editor.planx.uk/src/@planx/components/List/Editor.tsx b/editor.planx.uk/src/@planx/components/List/Editor.tsx index bfa3e99ae8..53d1f15fad 100644 --- a/editor.planx.uk/src/@planx/components/List/Editor.tsx +++ b/editor.planx.uk/src/@planx/components/List/Editor.tsx @@ -14,6 +14,7 @@ import InputRowLabel from "ui/shared/InputRowLabel"; import { EditorProps, ICONS, InternalNotes, MoreInformation } from "../ui"; import { List, parseContent } from "./model"; import { ProposedAdvertisements } from "./schemas/Adverts"; +import { MaterialDetails } from "./schemas/Materials"; import { NonResidentialFloorspace } from "./schemas/Floorspace"; import { BuildingDetailsGLA } from "./schemas/GLA/BuildingDetails"; import { CommunalSpaceGLA } from "./schemas/GLA/CommunalSpace"; @@ -28,6 +29,7 @@ import { ResidentialUnitsGLARebuilt } from "./schemas/ResidentialUnits/GLA/Rebui import { ResidentialUnitsGLARemoved } from "./schemas/ResidentialUnits/GLA/Removed"; import { ResidentialUnitsProposed } from "./schemas/ResidentialUnits/Proposed"; + type Props = EditorProps; export const SCHEMAS = [ @@ -55,6 +57,7 @@ export const SCHEMAS = [ name: "Existing and proposed uses (GLA)", schema: ExistingAndProposedUsesGLA, }, + { name: "Material details", schema: MaterialDetails }, { name: "Building details (GLA)", schema: BuildingDetailsGLA }, { name: "Communal spaces (GLA)", schema: CommunalSpaceGLA }, { name: "Protected spaces (GLA)", schema: ProtectedSpaceGLA }, diff --git a/editor.planx.uk/src/@planx/components/List/schemas/Materials.ts b/editor.planx.uk/src/@planx/components/List/schemas/Materials.ts new file mode 100644 index 0000000000..be09469488 --- /dev/null +++ b/editor.planx.uk/src/@planx/components/List/schemas/Materials.ts @@ -0,0 +1,63 @@ +import { Schema } from "@planx/components/List/model"; +import { TextInputType } from "@planx/components/TextInput/model"; + +export const MaterialDetails: Schema = { + type: "Material", + fields: [ + { + type: "question", + data: { + title: "Type", + fn: "type", + options: [ + { id: "wall", data: { text: "External walls", val: "wall" } }, + { + id: "window", + data: { text: "Windows", val: "window" }, + }, + { id: "door", data: { text: "Doors", val: "door" } }, + { + id: "roof", + data: { text: "Roof", val: "roof" }, + }, + { + id: "boundary", + data: { + text: "Fences, walls and gates", + val: "boundary", + }, + }, + { + id: "surface", + data: { text: "External ground materials for access and parking", val: "surface" }, + }, + { + id: "lighting", + data: { text: "Lighting", val: "lighting" }, + }, + { + id: "other", + data: { text: "Others", val: "other" }, + }, + ], + }, + }, + { + type: "text", + data: { + title: "Existing material description", + fn: "existing", + type: TextInputType.Short, + }, + }, + { + type: "text", + data: { + title: "Proposed material description", + fn: "proposed", + type: TextInputType.Short, + }, + }, + ], + min: 1, +} as const;