-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1249 Submit project details for new project
- refactored projects-new-information.hbs - extracted all contact form fields into a new template: projects-new-add-contacts.hbs - added boroughs to projects-new-information template using ember powerselect - added functions to projects/new..js to handle dropdown actions - updated project optionset to include boroughs and imported into optionsets.js
- Loading branch information
1 parent
7e2d128
commit 80910ef
Showing
7 changed files
with
223 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
119 changes: 119 additions & 0 deletions
119
client/app/components/packages/projects/projects-new-add-contacts.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
{{#let @form as |form|}} | ||
<form.Section @title="Contact Information"> | ||
<h3>Primary Contact</h3> | ||
<p>This contact is the person who will respond to public inquiries regarding the application.</p> | ||
<Ui::Question @required={{true}} as |Q|> | ||
<Q.Label> | ||
First Name | ||
</Q.Label> | ||
|
||
<form.Field | ||
@attribute="primaryContactFirstName" | ||
@type="text-input" | ||
id={{Q.questionId}} | ||
@showCounter={{true}} | ||
@maxlength="50" | ||
/> | ||
</Ui::Question> | ||
<Ui::Question @required={{true}} as |Q|> | ||
<Q.Label> | ||
Last Name | ||
</Q.Label> | ||
|
||
<form.Field | ||
@attribute="primaryContactLastName" | ||
@type="text-input" | ||
id={{Q.questionId}} | ||
@showCounter={{true}} | ||
@maxlength="50" | ||
/> | ||
</Ui::Question> | ||
<Ui::Question @required={{true}} as |Q|> | ||
<Q.Label> | ||
</Q.Label> | ||
|
||
<form.Field | ||
@attribute="primaryContactEmail" | ||
@type="text-input" | ||
id={{Q.questionId}} | ||
@showCounter={{true}} | ||
@maxlength="50" | ||
/> | ||
</Ui::Question> | ||
<Ui::Question @required={{false}} as |Q|> | ||
<Q.Label> | ||
Phone | ||
</Q.Label> | ||
<p class="q-help"> | ||
No dashes, parentheses, or special characters. | ||
</p> | ||
|
||
<form.Field | ||
@attribute="primaryContactPhone" | ||
@type="text-input" | ||
id={{Q.questionId}} | ||
@showCounter={{true}} | ||
@maxlength="10" | ||
/> | ||
</Ui::Question> | ||
|
||
<h3>Applicant</h3> | ||
<p>The owner, entity, or representative of the project described in this application.</p> | ||
<Ui::Question @required={{true}} as |Q|> | ||
<Q.Label> | ||
First Name | ||
</Q.Label> | ||
|
||
<form.Field | ||
@attribute="applicantFirstName" | ||
@type="text-input" | ||
id={{Q.questionId}} | ||
@showCounter={{true}} | ||
@maxlength="50" | ||
/> | ||
</Ui::Question> | ||
<Ui::Question @required={{true}} as |Q|> | ||
<Q.Label> | ||
Last Name | ||
</Q.Label> | ||
|
||
<form.Field | ||
@attribute="applicantLastName" | ||
@type="text-input" | ||
id={{Q.questionId}} | ||
@showCounter={{true}} | ||
@maxlength="50" | ||
/> | ||
</Ui::Question> | ||
<Ui::Question @required={{true}} as |Q|> | ||
<Q.Label> | ||
</Q.Label> | ||
|
||
<form.Field | ||
@attribute="applicantEmail" | ||
@type="text-input" | ||
id={{Q.questionId}} | ||
@showCounter={{true}} | ||
@maxlength="50" | ||
/> | ||
</Ui::Question> | ||
<Ui::Question @required={{false}} as |Q|> | ||
<Q.Label> | ||
Phone | ||
</Q.Label> | ||
<p class="q-help"> | ||
No dashes, parentheses, or special characters. | ||
</p> | ||
|
||
<form.Field | ||
@attribute="applicantPhone" | ||
@type="text-input" | ||
id={{Q.questionId}} | ||
@showCounter={{true}} | ||
@maxlength="10" | ||
/> | ||
</Ui::Question> | ||
</form.Section> | ||
{{/let}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.