diff --git a/client/app/components/packages/projects/new.hbs b/client/app/components/packages/projects/new.hbs
index d29efa06..7d9a10c9 100644
--- a/client/app/components/packages/projects/new.hbs
+++ b/client/app/components/packages/projects/new.hbs
@@ -24,7 +24,11 @@
@form={{saveableProjectsNewForm}}
@boroughOptions={{this.boroughOptions}}
@onBoroughChange={{this.handleBoroughChange}}
- @selectedBorough={{this.selectedBorough}} />
+ @selectedBorough={{this.selectedBorough}}
+ @onApplicantTypeSelection={{this.handleApplicantTypeChange}}
+ @selectedApplicantType={{this.selectedApplicantType}}
+ @applicantOptions={{this.applicantOptions}}
+ />
diff --git a/client/app/components/packages/projects/new.js b/client/app/components/packages/projects/new.js
index 57e744cd..e01d37ef 100644
--- a/client/app/components/packages/projects/new.js
+++ b/client/app/components/packages/projects/new.js
@@ -20,10 +20,17 @@ export default class ProjectsNewFormComponent extends Component {
@tracked
selectedBorough = null;
+ @tracked
+ selectedApplicantType = null;
+
get boroughOptions() {
return optionset(['project', 'boroughs', 'list']);
}
+ get applicantOptions() {
+ return optionset(['applicant', 'dcpApplicantType', 'list']);
+ }
+
@action
handleBoroughChange(selectedBorough) {
console.log('Selected borough:', selectedBorough);
@@ -35,6 +42,17 @@ export default class ProjectsNewFormComponent extends Component {
}
}
+ @action
+ handleApplicantTypeChange(selectedApplicantType) {
+ console.log('Selected Applicant Type:', selectedApplicantType);
+
+ this.selectedApplicantType = selectedApplicantType;
+
+ if (this.args.form) {
+ this.args.form.set('dcpApplicantType', selectedApplicantType);
+ }
+ }
+
@action
async submitPackage() {
const primaryContactInput = {
diff --git a/client/app/components/packages/projects/projects-new-information.hbs b/client/app/components/packages/projects/projects-new-information.hbs
index e5092ac1..04b1005f 100644
--- a/client/app/components/packages/projects/projects-new-information.hbs
+++ b/client/app/components/packages/projects/projects-new-information.hbs
@@ -1,16 +1,17 @@
{{#let @form as |form|}}
-
+
Project Name
@@ -21,13 +22,27 @@
@options={{@boroughOptions}}
@onChange={{@onBoroughChange}}
@selected={{@selectedBorough}}
- @searchField="label"
- @placeholder="Select a borough"
- as |borough|
- >
+ @searchField='label'
+ @placeholder='select a borough' as |borough| >
{{borough.label}}
+
+
+ Applicant Type
+
+
+ Identify if you represent a public agency or are a private entity.
+
+
+ {{applicantType.label}}
+
+
{{/let}}
diff --git a/client/app/helpers/optionset.js b/client/app/helpers/optionset.js
index 0be28a0c..9b8b284c 100644
--- a/client/app/helpers/optionset.js
+++ b/client/app/helpers/optionset.js
@@ -38,6 +38,7 @@ const OPTIONSET_LOOKUP = {
applicant: {
dcpState: APPLICANT_OPTIONSETS.DCPSTATE,
dcpType: APPLICANT_OPTIONSETS.DCPTYPE,
+ dcpApplicantType: APPLICANT_OPTIONSETS.DCP_APPLICANTTYPE,
},
bbl: {
boroughs: BBL_OPTIONSETS.BOROUGHS,
diff --git a/client/app/optionsets/applicant.js b/client/app/optionsets/applicant.js
index 44da738f..3715a15f 100644
--- a/client/app/optionsets/applicant.js
+++ b/client/app/optionsets/applicant.js
@@ -248,9 +248,21 @@ export const DCPSTATE = {
},
};
+export const DCP_APPLICANTTYPE = {
+ OTHER_PUBLIC_AGENCY: {
+ label: "Other Public Agency",
+ code: 717170001,
+ },
+ PRIVATE: {
+ label: "Private",
+ code: 717170002,
+ },
+};
+
const APPLICANT_OPTIONSETS = {
DCPTYPE,
DCPSTATE,
+ DCP_APPLICANTTYPE,
};
export default APPLICANT_OPTIONSETS;