-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into rory/add-name-editor-2
- Loading branch information
Showing
20 changed files
with
831 additions
and
254 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
editor.planx.uk/src/@planx/components/List/schemas/Adverts.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |
51 changes: 51 additions & 0 deletions
51
editor.planx.uk/src/@planx/components/List/schemas/GenericUnitsTest.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import { Schema } from "@planx/components/List/model"; | ||
|
||
export const GenericUnitsTest: Schema = { | ||
type: "Unit", | ||
fields: [ | ||
// fn = "development" triggers summary stat and options set "val" | ||
{ | ||
type: "question", | ||
data: { | ||
title: "What development does this unit result from?", | ||
fn: "development", | ||
options: [ | ||
{ id: "newBuild", data: { text: "New build", val: "newBuild" } }, | ||
{ | ||
id: "changeOfUseFrom", | ||
data: { | ||
text: "Change of use of existing single home", | ||
val: "changeOfUseFrom", | ||
}, | ||
}, | ||
{ | ||
id: "changeOfUseTo", | ||
data: { text: "Change of use to a home", val: "changeOfUseTo" }, | ||
}, | ||
], | ||
}, | ||
}, | ||
// options set "text" only | ||
{ | ||
type: "question", | ||
data: { | ||
title: "Is this unit built on garden land?", | ||
fn: "garden", | ||
options: [ | ||
{ id: "true", data: { text: "Yes" } }, | ||
{ id: "false", data: { text: "No" } }, | ||
], | ||
}, | ||
}, | ||
// fn = "identicalUnits" triggers summary stat | ||
{ | ||
type: "number", | ||
data: { | ||
title: "How many identical units does the description above apply to?", | ||
fn: "identicalUnits", | ||
allowNegatives: false, | ||
}, | ||
}, | ||
], | ||
min: 1, | ||
} as const; |
Oops, something went wrong.