-
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.
feat: Add Proposed Advertisements to List component and schema (#3262)
- Loading branch information
1 parent
4ec33b0
commit 17a35c6
Showing
2 changed files
with
43 additions
and
0 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
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; |