diff --git a/imports/api/unit-meta-data.js b/imports/api/unit-meta-data.js index fda59387..7d10daa5 100644 --- a/imports/api/unit-meta-data.js +++ b/imports/api/unit-meta-data.js @@ -25,6 +25,14 @@ export const unitTypes = Object.freeze([ } ]) +export const statusOfPolicies = Object.freeze([ + { + name: 'With open case' + }, + { + name: 'Without open case' + } +]) // TODO: Figure this out later // export const formatAddressLabel = metaData => { // let fullLabel = '' diff --git a/imports/ui/unit-explorer/unit-explorer.jsx b/imports/ui/unit-explorer/unit-explorer.jsx index 3c06a52f..ed865ef6 100644 --- a/imports/ui/unit-explorer/unit-explorer.jsx +++ b/imports/ui/unit-explorer/unit-explorer.jsx @@ -149,7 +149,7 @@ class UnitExplorer extends Component { {/* { countrySearchText, country, countryValidWarning, - unitType + unitType, + statusOfPolicy } = this.state; const ongoingRemoval = this.getOngoingRemoval(this.props, this.state); const unitName = metaData.displayName || unitItem.name; @@ -289,11 +290,32 @@ class UnitOverviewTab extends React.Component { })}
- {this.renderEditableField({ - label: "Status of Policy", - stateVar: "statusOfPolicy", - isEditing - })} + {isEditing ? ( + { + this.setState({ + statusOfPolicy: val + }); + }} + > + {statusOfPolicies.map(status => ( + + ))} + + ) : ( +
+ {infoItemMembers("Status of Policy", metaData.status)} +
+ )}
@@ -333,22 +355,22 @@ class UnitOverviewTab extends React.Component {
)} -
-
- {this.renderEditableField({ - label: 'Additional Comment(s)', - stateVar: 'state', - isEditing - })} -
- {/*
+
+
+ {this.renderEditableField({ + label: "Additional Comment(s)", + stateVar: "state", + isEditing + })} +
+ {/*
{this.renderEditableField({ label: 'Zip / Postal code', stateVar: 'zipCode', isEditing })}
*/} -
+
PEOPLE