diff --git a/editor.planx.uk/src/@planx/components/List/Editor.tsx b/editor.planx.uk/src/@planx/components/List/Editor.tsx index 46873233b1..8f96df6187 100644 --- a/editor.planx.uk/src/@planx/components/List/Editor.tsx +++ b/editor.planx.uk/src/@planx/components/List/Editor.tsx @@ -20,6 +20,7 @@ import { ResidentialUnitsGLARemoved } from "./schemas/ResidentialUnits/GLA/Remov import { ResidentialUnitsGLARetained } from "./schemas/ResidentialUnits/GLA/Retained"; import { ResidentialUnitsProposed } from "./schemas/ResidentialUnits/Proposed"; import { Zoo } from "./schemas/Zoo"; +import { ProposedAdvertisements } from "./schemas/Adverts"; type Props = EditorProps; @@ -40,6 +41,7 @@ export const SCHEMAS = [ schema: ResidentialUnitsGLARetained, }, { name: "Zoo (test)", schema: Zoo }, + { name: "Proposed advertisements", schema: ProposedAdvertisements }, ]; function ListComponent(props: Props) { diff --git a/editor.planx.uk/src/@planx/components/List/schemas/Adverts.ts b/editor.planx.uk/src/@planx/components/List/schemas/Adverts.ts new file mode 100644 index 0000000000..3a2e9461d3 --- /dev/null +++ b/editor.planx.uk/src/@planx/components/List/schemas/Adverts.ts @@ -0,0 +1,41 @@ +import { Schema } from "@planx/components/List/model"; + +export const ProposedAdvertisements: Schema = { + type: "Proposed advertisements", + fields: [ + { + type: "number", + data: { + title: "How many fascia signs are you applying for?", + fn: "fascia", + allowNegatives: false, + }, + }, + { + type: "number", + data: { + title: "How many projecting or hanging signs are you applying for?", + fn: "projecting", + allowNegatives: false, + }, + }, + { + type: "number", + data: { + title: "How many hoardings are you applying for?", + fn: "hoarding", + allowNegatives: false, + }, + }, + { + type: "number", + data: { + title: "How many other advertisements are you applying for?", + fn: "other", + allowNegatives: false, + }, + }, + ], + min: 1, + max: 1, +} as const;