diff --git a/src/components/Questionnaire/BuildingInfo.js b/src/components/Questionnaire/BuildingInfo.js index 2dbd4187496ee65b43c31422503d79b794a8b31a..a4eef9e9faab0a37875c088730cf93513ce536b5 100644 --- a/src/components/Questionnaire/BuildingInfo.js +++ b/src/components/Questionnaire/BuildingInfo.js @@ -1,6 +1,6 @@ import React, { Component } from 'react'; import PropTypes from 'prop-types'; -import { Table, Input } from 'reactstrap'; +import { Table, Input, Card, CardHeader } from 'reactstrap'; import BuildingUnitDropdown from './BuildingUnitDropdown'; class BuildingInfo extends Component { @@ -13,6 +13,8 @@ class BuildingInfo extends Component { email: props.email, phone: props.phone, address: props.address, + buildingSqFt: props.buildingSqFt, + numberOfFloors: props.numberOfFloors, unitInfo: { studio: props.numOfStudio, oneBedroom: props.numOfOneBedroom, @@ -36,7 +38,6 @@ class BuildingInfo extends Component { }, }, () => { this.props.onChangeEvent('buildingInfo', this.state.form); - console.log('changed!'); // eslint-disable-line }); } @@ -56,7 +57,6 @@ class BuildingInfo extends Component { }, }, () => { this.props.onChangeEvent('buildingInfo', this.state.form); - console.log('changed!'); // eslint-disable-line }); } @@ -72,7 +72,6 @@ class BuildingInfo extends Component { }, }, () => { this.props.onChangeEvent('buildingInfo', this.state.form); - console.log('changed!'); // eslint-disable-line }); } @@ -86,179 +85,217 @@ class BuildingInfo extends Component { }); return (
| - Building Intake - | -|||||||||||||||||||||||||||||||||||||||||||||||
|
-
-
+
|
+ |||||||||||||||||||||||||||||||||||||||||||||||
| - Financial Initial Go/NoGo - | -||||||||||||
|
-
-
+
+ Financial Initial Go/NoGo
- |
-
|
+
+
+
|
+
| - Remote Survey - | -||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
-
-
+
|
+
| - {props.title} - | -|
|
-
- First Name
-
-
- {props.upperFirstLetter(props.data.firstName)}
-
- |
-
-
- Last Name
-
-
- {props.upperFirstLetter(props.data.lastName)}
-
- |
-
|
-
- Email
-
-
- {props.data.email}
-
- |
-
-
- Phone
-
-
- {props.data.phone}
-
- |
-
|
-
- Address
-
-
- {address}
-
- |
- |
|
-
- Number of Studio
-
-
- {props.data.unitInfo.studio}
-
- |
-
-
- Number of One Bedroom Apartment
-
-
- {props.data.unitInfo.oneBedroom}
-
- |
-
|
-
- Number of Two Bedroom Apartment
-
-
- {props.data.unitInfo.twoBedroom}
-
- |
-
-
- Number of Three Bedroom Apartment
-
-
- {props.data.unitInfo.threeBedroom}
-
- |
-
|
-
- Number of Four Bedroom Apartment
-
-
- {props.data.unitInfo.fourBedroom}
-
- |
-
-
- Other Apartment
-
-
- {props.data.unitInfo.other} {props.data.unitInfo.numOfOther}
-
- |
-
|
+
+ First Name
+
+
+ {props.upperFirstLetter(props.data.firstName)}
+
+ |
+
+
+ Last Name
+
+
+ {props.upperFirstLetter(props.data.lastName)}
+
+ |
+
|
+
+ Email
+
+
+ {props.data.email}
+
+ |
+
+
+ Phone
+
+
+ {props.data.phone}
+
+ |
+
|
+
+ Address
+
+
+ {address}
+
+ |
+ |
|
+
+ Number of Floors
+
+
+ {props.data.numberOfFloors}
+
+ |
+ |
|
+
+ Building Square Feet
+
+
+ {props.data.buildingSqFt}
+
+ |
+ |
|
+
+ Number of Studio
+
+
+ {props.data.unitInfo.studio}
+
+ |
+
+
+ Number of One Bedroom Apartment
+
+
+ {props.data.unitInfo.oneBedroom}
+
+ |
+
|
+
+ Number of Two Bedroom Apartment
+
+
+ {props.data.unitInfo.twoBedroom}
+
+ |
+
+
+ Number of Three Bedroom Apartment
+
+
+ {props.data.unitInfo.threeBedroom}
+
+ |
+
|
+
+ Number of Four Bedroom Apartment
+
+
+ {props.data.unitInfo.fourBedroom}
+
+ |
+
+
+ Other Apartment
+
+
+ {props.data.unitInfo.other} {props.data.unitInfo.numOfOther}
+
+ |
+
| - {props.title} - | -|
|
-
- Any bankruptcy in the past three years?
-
-
- {
- props.upperFirstLetter(
- props.answers[props.data.bankruptcyPast.answer_id]
- )
- }
-
- |
- |
|
-
- Current on energy bills?
-
-
- {
- props.upperFirstLetter(
- props.answers[props.data.currentOnEnergyBills.answer_id]
- )
- }
-
- |
- |
|
-
- What is the current outstanding balance of the mortgage?
-
-
- {
- props.upperFirstLetter(
- props.answers[props.data.currentMortgageBalance.answer_id]
- )
- }
-
- |
- |
|
-
- Is your building currently profitable?
-
-
- {
- props.upperFirstLetter(
- props.answers[props.data.profitable.answer_id]
- )
- }
-
- |
- |
|
-
- What is your current budget for a down payment?
-
-
- {
- props.upperFirstLetter(
- props.answers[props.data.budgetForDownPayment.answer_id]
- )
- }
+
+
+ {props.title}
- |
-
|
+
+ Legal Ownership
+
+
+ {
+ props.upperFirstLetter(
+ props.answers[props.data.legalOwnership.answer_id]
+ )
+ }
+
+ |
+ |
|
+
+ Number of DOB violations?
+
+
+ {
+ props.upperFirstLetter(
+ props.answers[props.data.numberOfDobViolations.answer_id]
+ )
+ }
+
+ |
+ |
|
+
+ Any bankruptcy in the past three years?
+
+
+ {
+ props.upperFirstLetter(
+ props.answers[props.data.bankruptcyPast.answer_id]
+ )
+ }
+
+ |
+ |
|
+
+ Current on energy bills?
+
+
+ {
+ props.upperFirstLetter(
+ props.answers[props.data.currentOnEnergyBills.answer_id]
+ )
+ }
+
+ |
+ |
|
+
+ What is the current outstanding balance of the mortgage?
+
+
+ {
+ props.upperFirstLetter(
+ props.answers[props.data.currentMortgageBalance.answer_id]
+ )
+ }
+
+ |
+ |
|
+
+ Is your building currently profitable?
+
+
+ {
+ props.upperFirstLetter(
+ props.answers[props.data.profitable.answer_id]
+ )
+ }
+
+ |
+ |
|
+
+ What is your current budget for a down payment?
+
+
+ {
+ props.upperFirstLetter(
+ props.answers[props.data.budgetForDownPayment.answer_id]
+ )
+ }
+
+ |
+
| - {props.title} - | -|
|
-
- Heating System
-
-
- {
- props.upperFirstLetter(
- props.answers[props.data.heatingSystem.answer_id]
- )
- }
-
- |
-
-
- Heating Fuel Source
-
-
- {
- props.upperFirstLetter(
- props.answers[props.data.heatingFuelSource.answer_id]
- )
- }
-
- |
-
|
-
- Is Domestic Hot Water (DHW) and heat prepared by the same boiler?
-
-
- {
- props.upperFirstLetter(
- props.answers[props.data.DHWSameBoiler.answer_id]
- )
- }
-
- |
- |
|
-
- Age of heat generating system?
-
-
- {
- props.upperFirstLetter(
- props.answers[props.data.ageOfHeatGenerateSystem.answer_id]
- )
- }
-
- |
- |
|
-
- When do you plan to replace the heating system?
-
-
- {
- props.upperFirstLetter(
- props.answers[props.data.planToReplaceHS.answer_id]
- )
- }
-
- |
- |
|
-
- Hallways heated?
-
-
- {
- props.upperFirstLetter(
- props.answers[props.data.hallwaysHeated.answer_id]
- )
- }
-
- |
-
-
- Basement heated?
-
-
- {
- props.upperFirstLetter(
- props.answers[props.data.basementHeated.answer_id]
- )
- }
-
- |
-
|
-
- Stairwells heated?
-
-
- {
- props.upperFirstLetter(
- props.answers[props.data.stairwellsHeated.answer_id]
- )
- }
-
- |
-
-
- Floors heated?
-
-
- {
- props.upperFirstLetter(
- props.answers[props.data.floorsHeated.answer_id]
- )
- }
-
- |
-
|
-
- Is the roof flat and easily accessible by a stairwell?
-
-
- {
- props.upperFirstLetter(
- props.answers[props.data.accessibleByStairwell.answer_id]
- )
- }
-
- |
- |
|
-
- Is the back facade of your building attached to an adjacent building or structure?
-
-
- {
- props.upperFirstLetter(
- props.answers[props.data.backFacadeAttached.answer_id]
- )
- }
-
- |
- |
|
-
- Are the exterior walls of your building attached to an adjacent building or structure?
-
-
- {
- props.upperFirstLetter(
- props.answers[props.data.exteriorWallsAttached.answer_id]
- )
- }
-
- |
- |
|
-
- Any tenant complaints about comfort issues? (Temperature)
-
-
- {
- props.upperFirstLetter(
- props.answers[props.data.tenantComplaintsComfort.answer_id]
- )
- }
-
- |
- |
|
-
- Any tenant complaints about drafty windows?
-
-
- {
- props.upperFirstLetter(
- props.answers[props.data.tenantComplaintsWindows.answer_id]
- )
- }
-
- |
- |
|
-
- Is the building directly metered for electricity (tenants pay ConEd bills)?
-
-
- {
- props.upperFirstLetter(
- props.answers[props.data.meteredForElectricity.answer_id]
- )
- }
+
+
+ {props.title}
- |
- |
|
+
+ Heating System
+
+
+ {
+ props.upperFirstLetter(
+ props.answers[props.data.heatingSystem.answer_id]
+ )
+ }
+
+ |
+
+
+ Heating Fuel Source
+
+
+ {
+ props.upperFirstLetter(
+ props.answers[props.data.heatingFuelSource.answer_id]
+ )
+ }
+
+ |
+
|
+
+ Is Domestic Hot Water (DHW) and heat prepared by the same boiler?
+
+
+ {
+ props.upperFirstLetter(
+ props.answers[props.data.DHWSameBoiler.answer_id]
+ )
+ }
+
+ |
+ |
|
+
+ Age of heat generating system?
+
+
+ {
+ props.upperFirstLetter(
+ props.answers[props.data.ageOfHeatGenerateSystem.answer_id]
+ )
+ }
+
+ |
+ |
|
+
+ When do you plan to replace the heating system?
+
+
+ {
+ props.upperFirstLetter(
+ props.answers[props.data.planToReplaceHS.answer_id]
+ )
+ }
+
+ |
+ |
|
+
+ Hallways heated?
+
+
+ {
+ props.upperFirstLetter(
+ props.answers[props.data.hallwaysHeated.answer_id]
+ )
+ }
+
+ |
+
+
+ Basement heated?
+
+
+ {
+ props.upperFirstLetter(
+ props.answers[props.data.basementHeated.answer_id]
+ )
+ }
+
+ |
+
|
+
+ Stairwells heated?
+
+
+ {
+ props.upperFirstLetter(
+ props.answers[props.data.stairwellsHeated.answer_id]
+ )
+ }
+
+ |
+
+
+ Floors heated?
+
+
+ {
+ props.upperFirstLetter(
+ props.answers[props.data.floorsHeated.answer_id]
+ )
+ }
+
+ |
+
|
+
+ Is the roof flat and easily accessible by a stairwell?
+
+
+ {
+ props.upperFirstLetter(
+ props.answers[props.data.accessibleByStairwell.answer_id]
+ )
+ }
+
+ |
+ |
|
+
+ Is the back facade of your building attached to an adjacent building or structure?
+
+
+ {
+ props.upperFirstLetter(
+ props.answers[props.data.backFacadeAttached.answer_id]
+ )
+ }
+
+ |
+ |
|
+
+ Are the exterior walls of your building attached
+ to an adjacent building or structure?
+
+
+ {
+ props.upperFirstLetter(
+ props.answers[props.data.exteriorWallsAttached.answer_id]
+ )
+ }
+
+ |
+ |
|
+
+ Any tenant complaints about comfort issues? (Temperature)
+
+
+ {
+ props.upperFirstLetter(
+ props.answers[props.data.tenantComplaintsComfort.answer_id]
+ )
+ }
+
+ |
+ |
|
+
+ Any tenant complaints about drafty windows?
+
+
+ {
+ props.upperFirstLetter(
+ props.answers[props.data.tenantComplaintsWindows.answer_id]
+ )
+ }
+
+ |
+ |
|
+
+ Is the building directly metered for electricity (tenants pay ConEd bills)?
+
+
+ {
+ props.upperFirstLetter(
+ props.answers[props.data.meteredForElectricity.answer_id]
+ )
+ }
+
+ |
+ |
|
+
+ Number of Heating Violations in last 5 years?
+
+
+ {
+ props.upperFirstLetter(
+ props.answers[props.data.numberOfHeatingViolations.answer_id]
+ )
+ }
+
+ |
+ |