diff --git a/app/src/api/config/dataFields.ts b/app/src/api/config/dataFields.ts index a17f0fa8..b7f739df 100644 --- a/app/src/api/config/dataFields.ts +++ b/app/src/api/config/dataFields.ts @@ -351,6 +351,14 @@ export const buildingAttributesConfig = valueType()({ /* eslint edit: true, verify: true }, + landowner: { + edit: true, + verify: true + }, + landowner_source_link: { + edit: true, + verify: true + }, designers: { edit: true, verify: true diff --git a/app/src/frontend/building/data-components/logical-data-entry/logical-data-entry.tsx b/app/src/frontend/building/data-components/logical-data-entry/logical-data-entry.tsx index 78cbee8f..596d2c7a 100644 --- a/app/src/frontend/building/data-components/logical-data-entry/logical-data-entry.tsx +++ b/app/src/frontend/building/data-components/logical-data-entry/logical-data-entry.tsx @@ -107,3 +107,41 @@ export const LogicalDataEntry: React.FC = (props) => { ); }; + +export const LogicalDataEntryYesOnly: React.FC = (props) => { + function handleValueChange(e: React.ChangeEvent) { + props.onChange?.(props.slug, e.target.value === 'true'); + } + + function handleClear(e: React.MouseEvent) { + props.onChange?.(props.slug, null); + } + + const isDisabled = props.mode === 'view' || props.disabled; + + return ( + <> + +
+ Yes +
+ { + !isDisabled && props.value != null && + + } + + ); +}; diff --git a/app/src/frontend/building/data-containers/team.tsx b/app/src/frontend/building/data-containers/team.tsx index 04e2648f..02236175 100644 --- a/app/src/frontend/building/data-containers/team.tsx +++ b/app/src/frontend/building/data-containers/team.tsx @@ -5,7 +5,7 @@ import SelectDataEntry from '../data-components/select-data-entry'; import NumericDataEntry from '../data-components/numeric-data-entry'; import Verification from '../data-components/verification'; import { MultiDataEntry } from '../data-components/multi-data-entry/multi-data-entry'; -import { LogicalDataEntry } from '../data-components/logical-data-entry/logical-data-entry'; +import { LogicalDataEntry, LogicalDataEntryYesOnly } from '../data-components/logical-data-entry/logical-data-entry'; import { DataEntryGroup } from '../data-components/data-entry-group'; import withCopyEdit from '../data-container'; @@ -22,6 +22,45 @@ const TeamView: React.FunctionComponent = (props) => { return (
+ + + + = (props) => { user_verified_as={props.user_verified.lead_designer_type} verified_count={props.building.verified.lead_designer_type} /> -