2019-08-14 17:12:24 -04:00
|
|
|
import React, { Fragment } from 'react';
|
2021-02-24 22:22:25 -05:00
|
|
|
import InfoBox from '../../components/info-box';
|
2022-06-01 05:35:35 -04:00
|
|
|
import { dataFields } from '../../config/data-fields-config';
|
2019-08-14 14:33:26 -04:00
|
|
|
|
2019-08-14 16:54:00 -04:00
|
|
|
import withCopyEdit from '../data-container';
|
2019-11-07 02:39:26 -05:00
|
|
|
|
2019-10-18 10:06:50 -04:00
|
|
|
import { CategoryViewProps } from './category-view-props';
|
2019-08-14 14:33:26 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Team view/edit section
|
|
|
|
*/
|
2019-10-18 10:06:50 -04:00
|
|
|
const TeamView: React.FunctionComponent<CategoryViewProps> = (props) => (
|
2019-08-14 17:12:24 -04:00
|
|
|
<Fragment>
|
2022-02-16 08:46:54 -05:00
|
|
|
<InfoBox msg="Can you help us capture information on who built the current building?"></InfoBox>
|
2019-08-14 17:12:24 -04:00
|
|
|
<ul>
|
|
|
|
<li>Construction and design team (original building)</li>
|
|
|
|
{
|
|
|
|
// "disabled": true,
|
|
|
|
// "slug": "team_original",
|
|
|
|
// "type": "text"
|
|
|
|
}
|
|
|
|
<li>Construction and design team (significant additional works)</li>
|
|
|
|
{
|
|
|
|
// "disabled": true,
|
|
|
|
// "slug": "team_after_original",
|
|
|
|
// "type": "text_multi"
|
|
|
|
}
|
2021-02-24 22:22:25 -05:00
|
|
|
<li>Awards</li>
|
2019-08-14 17:12:24 -04:00
|
|
|
</ul>
|
2022-06-01 05:29:57 -04:00
|
|
|
<SelectDataEntry
|
|
|
|
title={dataFields.is_extension.title}
|
|
|
|
slug="is_extension"
|
|
|
|
value={props.building.is_extension}
|
|
|
|
mode={props.mode}
|
|
|
|
copy={props.copy}
|
|
|
|
onChange={props.onChange}
|
|
|
|
tooltip={dataFields.is_extension.tooltip}
|
|
|
|
placeholder={dataFields.is_extension.example}
|
|
|
|
options={dataFields.is_extension.items}
|
|
|
|
/>
|
2019-08-14 17:12:24 -04:00
|
|
|
</Fragment>
|
2019-11-07 03:13:30 -05:00
|
|
|
);
|
2019-08-14 14:33:26 -04:00
|
|
|
const TeamContainer = withCopyEdit(TeamView);
|
|
|
|
|
|
|
|
export default TeamContainer;
|