add lead_designer_type

This commit is contained in:
Ed Chalstrey 2022-06-01 16:32:39 +01:00
parent 24f153db4e
commit 226910d3d6
2 changed files with 31 additions and 0 deletions

View File

@ -92,6 +92,15 @@ const TeamView: React.FunctionComponent<CategoryViewProps> = (props) => {
placeholder="https://..." placeholder="https://..."
editableEntries={true} editableEntries={true}
/> />
<SelectDataEntry
slug='lead_designer_type'
title={dataFields.lead_designer_type.title}
value={props.building.lead_designer_type}
options={dataFields.lead_designer_type.items}
onChange={props.onChange}
mode={props.mode}
copy={props.copy}
/>
</Fragment> </Fragment>
); );
}; };
@ -169,6 +178,15 @@ const TeamView: React.FunctionComponent<CategoryViewProps> = (props) => {
placeholder="https://..." placeholder="https://..."
editableEntries={true} editableEntries={true}
/> />
<SelectDataEntry
slug='lead_designer_type'
title={dataFields.lead_designer_type.title}
value={props.building.lead_designer_type}
options={dataFields.lead_designer_type.items}
onChange={props.onChange}
mode={props.mode}
copy={props.copy}
/>
</Fragment> </Fragment>
); );
}; };

View File

@ -679,6 +679,19 @@ export const dataFields = { /* eslint-disable @typescript-eslint/camelcase */
title: "Source links for designer(s)", title: "Source links for designer(s)",
tooltip: "URL for source for designer(s)", tooltip: "URL for source for designer(s)",
example: ["", "", ""], example: ["", "", ""],
},
lead_designer_type: {
category: Category.Team,
title: "Which best describes the lead designer?",
example: "",
items: [
"Landowner",
"Speculative builder",
"Government architecture department",
"Architectural firm",
"Engineering firm",
"Other"
]
} }
}; };