2019-08-14 17:06:58 -04:00
|
|
|
import React, { Fragment } from 'react';
|
2021-02-24 22:22:25 -05:00
|
|
|
import InfoBox from '../../components/info-box';
|
|
|
|
import { dataFields } from '../../config/data-fields-config';
|
|
|
|
import DataEntry from '../data-components/data-entry';
|
|
|
|
import NumericDataEntry from '../data-components/numeric-data-entry';
|
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
|
|
|
|
|
|
|
/**
|
2019-09-10 10:05:35 -04:00
|
|
|
* Streetscape view/edit section
|
2019-08-14 14:33:26 -04:00
|
|
|
*/
|
2019-10-18 10:06:50 -04:00
|
|
|
const StreetscapeView: React.FunctionComponent<CategoryViewProps> = (props) => (
|
2019-08-14 17:06:58 -04:00
|
|
|
<Fragment>
|
2021-02-24 22:22:25 -05:00
|
|
|
<InfoBox msg="This is what we're planning to collect on the building's context" />
|
2019-08-14 17:06:58 -04:00
|
|
|
<ul className="data-list">
|
|
|
|
<li>Gardens</li>
|
|
|
|
<li>Trees</li>
|
|
|
|
<li>Green walls</li>
|
|
|
|
<li>Green roof</li>
|
|
|
|
<li>Proximity to parks and open greenspace</li>
|
|
|
|
<li>Building shading</li>
|
|
|
|
</ul>
|
2021-02-24 22:22:25 -05:00
|
|
|
<NumericDataEntry
|
|
|
|
title={dataFields.size_plot_area_total.title}
|
|
|
|
slug="size_plot_area_total"
|
|
|
|
value={props.building.size_plot_area_total}
|
|
|
|
mode={props.mode}
|
|
|
|
copy={props.copy}
|
|
|
|
onChange={props.onChange}
|
|
|
|
step={0.1}
|
|
|
|
min={0}
|
|
|
|
disabled={true}
|
|
|
|
/>
|
|
|
|
<NumericDataEntry
|
|
|
|
title={dataFields.size_far_ratio.title}
|
|
|
|
slug="size_far_ratio"
|
|
|
|
value={props.building.size_far_ratio}
|
|
|
|
mode={props.mode}
|
|
|
|
copy={props.copy}
|
|
|
|
onChange={props.onChange}
|
|
|
|
step={0.1}
|
|
|
|
min={0}
|
|
|
|
disabled={true}
|
|
|
|
/>
|
|
|
|
<DataEntry
|
|
|
|
title="Plot dimensions"
|
|
|
|
slug=""
|
|
|
|
value=""
|
|
|
|
mode='view'
|
|
|
|
/>
|
|
|
|
<DataEntry
|
|
|
|
title="Plot geometry link"
|
|
|
|
slug=""
|
|
|
|
value=""
|
|
|
|
mode='view'
|
|
|
|
/>
|
|
|
|
<DataEntry
|
|
|
|
title="Land ownership parcel link"
|
|
|
|
slug=""
|
|
|
|
value=""
|
|
|
|
mode='view'
|
|
|
|
/>
|
|
|
|
<DataEntry
|
|
|
|
title="Land ownership type"
|
|
|
|
slug=""
|
|
|
|
value=""
|
|
|
|
mode='view'
|
|
|
|
/>
|
|
|
|
<DataEntry
|
|
|
|
title="Street width"
|
|
|
|
slug=""
|
|
|
|
value=""
|
|
|
|
mode='view'
|
|
|
|
/>
|
|
|
|
<DataEntry
|
|
|
|
title="Street network geometry link"
|
|
|
|
slug=""
|
|
|
|
value=""
|
|
|
|
mode='view'
|
|
|
|
/>
|
2019-08-14 17:06:58 -04:00
|
|
|
</Fragment>
|
2019-11-07 03:13:30 -05:00
|
|
|
);
|
2019-09-10 10:05:35 -04:00
|
|
|
const StreetscapeContainer = withCopyEdit(StreetscapeView);
|
2019-08-14 14:33:26 -04:00
|
|
|
|
2019-09-10 10:05:35 -04:00
|
|
|
export default StreetscapeContainer;
|