-
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.
project form completed with all required fields
tried to make validations work, it was an incomplete success.
- Loading branch information
1 parent
3e40dc6
commit d889e6b
Showing
8 changed files
with
89 additions
and
16 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
41 changes: 31 additions & 10 deletions
41
client/app/components/packages/projects/projects-new-information.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 |
---|---|---|
@@ -1,33 +1,54 @@ | ||
{{#let @form as |form|}} | ||
<form.Section @title="Project Information"> | ||
<form.Section @title='Project Information'> | ||
<Ui::Question @required={{true}} as |Q|> | ||
<Q.Label> | ||
Project Name | ||
</Q.Label> | ||
|
||
<form.Field | ||
@attribute="projectName" | ||
@type="text-input" | ||
@attribute='projectName' | ||
@type='text-input' | ||
id={{Q.questionId}} | ||
@showCounter={{true}} | ||
@maxlength="50" | ||
@maxlength='50' | ||
placeholder="project name" | ||
/> | ||
</Ui::Question> | ||
<Ui::Question @required={{true}} as |Q|> | ||
<Q.Label> | ||
<Q.Label data-test-projects-new-borough-dropdown> | ||
Borough | ||
</Q.Label> | ||
<PowerSelect | ||
<PowerSelect | ||
supportsDataTestProperties={{true}} | ||
@attribute='borough' | ||
@options={{@boroughOptions}} | ||
@onChange={{@onBoroughChange}} | ||
@selected={{@selectedBorough}} | ||
@searchField="label" | ||
@placeholder="Select a borough" | ||
as |borough| | ||
> | ||
@searchField='label' | ||
data-test-id='project-new-borough-dropdown' | ||
@placeholder='select a borough' as |borough| > | ||
{{borough.label}} | ||
</PowerSelect> | ||
</Ui::Question> | ||
<Ui::Question @required={{true}} as |Q|> | ||
<Q.Label data-test-projects-new-applicant-type> | ||
Applicant Type | ||
</Q.Label> | ||
<p class='q-help'> | ||
Identify if you represent a public agency or are a private entity. | ||
</p> | ||
<PowerSelect | ||
supportsDataTestProperties={{true}} | ||
@attribute='dcpApplicantType' | ||
@options={{@applicantOptions}} | ||
@onChange={{@onApplicantTypeSelection}} | ||
@selected={{@selectedApplicantType}} | ||
@searchField='label' | ||
data-test-id='projects-new-applicant-type' | ||
@placeholder='select applicant type' as |dcpApplicantType| > | ||
{{dcpApplicantType.label}} | ||
</PowerSelect> | ||
</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
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