add planning_nhle_link
This commit is contained in:
parent
4ea5952b8f
commit
dc2d026f7f
@ -237,6 +237,10 @@ export const buildingAttributesConfig = valueType<DataFieldConfig>()({ /* eslint
|
|||||||
edit: true,
|
edit: true,
|
||||||
verify: true,
|
verify: true,
|
||||||
},
|
},
|
||||||
|
planning_nhle_link: {
|
||||||
|
edit: true,
|
||||||
|
verify: true,
|
||||||
|
},
|
||||||
sust_breeam_rating: {
|
sust_breeam_rating: {
|
||||||
edit: true,
|
edit: true,
|
||||||
verify: true,
|
verify: true,
|
||||||
|
@ -139,6 +139,22 @@ const PlanningView: React.FunctionComponent<CategoryViewProps> = (props) => (
|
|||||||
user_verified_as={props.user_verified.planning_in_list}
|
user_verified_as={props.user_verified.planning_in_list}
|
||||||
verified_count={props.building.verified.planning_in_list}
|
verified_count={props.building.verified.planning_in_list}
|
||||||
/>
|
/>
|
||||||
|
<DataEntry
|
||||||
|
title={dataFields.planning_nhle_link.title}
|
||||||
|
slug="planning_portal_link"
|
||||||
|
value={props.building.planning_nhle_link}
|
||||||
|
mode={props.mode}
|
||||||
|
copy={props.copy}
|
||||||
|
onChange={props.onChange}
|
||||||
|
/>
|
||||||
|
<Verification
|
||||||
|
slug="planning_nhle_link"
|
||||||
|
allow_verify={props.user !== undefined && props.building.planning_nhle_link !== null && !props.edited}
|
||||||
|
onVerify={props.onVerify}
|
||||||
|
user_verified={props.user_verified.hasOwnProperty("planning_nhle_link")}
|
||||||
|
user_verified_as={props.user_verified.planning_nhle_link}
|
||||||
|
verified_count={props.building.verified.planning_nhle_link}
|
||||||
|
/>
|
||||||
<DataEntry
|
<DataEntry
|
||||||
title={dataFields.planning_list_id.title}
|
title={dataFields.planning_list_id.title}
|
||||||
slug="planning_list_id"
|
slug="planning_list_id"
|
||||||
|
@ -464,6 +464,12 @@ export const dataFields = { /* eslint-disable @typescript-eslint/camelcase */
|
|||||||
example: true,
|
example: true,
|
||||||
//tooltip: ,
|
//tooltip: ,
|
||||||
},
|
},
|
||||||
|
planning_nhle_link: {
|
||||||
|
category: Category.Planning,
|
||||||
|
title: "NHLE list entry link",
|
||||||
|
example: "",
|
||||||
|
//tooltip: ,
|
||||||
|
},
|
||||||
planning_list_id: {
|
planning_list_id: {
|
||||||
category: Category.Planning,
|
category: Category.Planning,
|
||||||
title: "National Heritage List for England list id",
|
title: "National Heritage List for England list id",
|
||||||
|
1
migrations/032.planning_nhle.down.sql
Normal file
1
migrations/032.planning_nhle.down.sql
Normal file
@ -0,0 +1 @@
|
|||||||
|
ALTER TABLE buildings DROP COLUMN IF EXISTS planning_nhle_link;
|
1
migrations/032.planning_nhle.up.sql
Normal file
1
migrations/032.planning_nhle.up.sql
Normal file
@ -0,0 +1 @@
|
|||||||
|
ALTER TABLE buildings ADD COLUMN IF NOT EXISTS planning_nhle_link text[];
|
Loading…
Reference in New Issue
Block a user