Merge pull request #1072 from matkoniecz/feature/1071-more-ca-info

Provide more instruction for user when editing CA and fix review button
This commit is contained in:
Mike Simpson 2023-02-02 12:30:14 +00:00 committed by GitHub
commit 3c3ffc76b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -330,12 +330,12 @@ const PlanningView: React.FunctionComponent<CategoryViewProps> = (props) => {
placeholder="Please add Conservation Area identifier" placeholder="Please add Conservation Area identifier"
/> />
<Verification <Verification
slug="planning_in_conservation_area_url" slug="planning_in_conservation_area_id"
allow_verify={props.user !== undefined && props.building.planning_in_conservation_area_url !== null && !props.edited} allow_verify={props.user !== undefined && props.building.planning_in_conservation_area_id !== null && !props.edited}
onVerify={props.onVerify} onVerify={props.onVerify}
user_verified={props.user_verified.hasOwnProperty("planning_in_conservation_area_url")} user_verified={props.user_verified.hasOwnProperty("planning_in_conservation_area_id")}
user_verified_as={props.user_verified.planning_in_conservation_area_url} user_verified_as={props.user_verified.planning_in_conservation_area_id}
verified_count={props.building.verified.planning_in_conservation_area_url} verified_count={props.building.verified.planning_in_conservation_area_id}
/> />
*/} */}
<DataEntry <DataEntry
@ -348,6 +348,16 @@ const PlanningView: React.FunctionComponent<CategoryViewProps> = (props) => {
isUrl={true} isUrl={true}
placeholder="Please add CA appraisal link here" placeholder="Please add CA appraisal link here"
/> />
{props.building.planning_in_conservation_area_url === "" ? "Our CA map records this building as not being within a CA. To help us verify this, please click verify or, if info is incorrect, please add the local authoritys CA appraisal link." : "" }
{props.building.planning_in_conservation_area_url === "identified as listed: please replace with links" ? "Our CA map records this building as being within a CA. To help us verify this information please add the local authoritys CA appraisal link and then click verify." : "" }
<Verification
slug="planning_in_conservation_area_url"
allow_verify={props.user !== undefined && props.building.planning_in_conservation_area_url !== null && !props.edited}
onVerify={props.onVerify}
user_verified={props.user_verified.hasOwnProperty("planning_in_conservation_area_url")}
user_verified_as={props.user_verified.planning_in_conservation_area_url}
verified_count={props.building.verified.planning_in_conservation_area_url}
/>
{/* {/*
<DataEntry <DataEntry
title={dataFields.planning_conservation_area_name.title} title={dataFields.planning_conservation_area_name.title}