Skip to content

Commit

Permalink
Merge pull request #7989 from michaelchadwick/frontend-5286-new-repor…
Browse files Browse the repository at this point in the history
…t-associated-with-error-display

fix new report Associated With error message alignment
  • Loading branch information
dartajax committed Jul 22, 2024
2 parents ff0cd8b + 815fde0 commit 472f579
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions packages/frontend/app/components/reports/new-subject.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -64,23 +64,25 @@
<label for="associated-{{templateId}}">
{{t "general.associatedWith"}}
</label>
<select
id="associated-{{templateId}}"
{{on "change" (pick "target.value" this.changePrepositionalObject)}}
>
<option value="" selected={{eq null this.prepositionalObject}}>
{{t "general.anything"}}
</option>
{{#each (sort-by "label" this.prepositionalObjectList) as |o|}}
<option
value={{o.value}}
selected={{eq o.value this.prepositionalObject}}
>
{{o.label}}
<div>
<select
id="associated-{{templateId}}"
{{on "change" (pick "target.value" this.changePrepositionalObject)}}
>
<option value="" selected={{eq null this.prepositionalObject}}>
{{t "general.anything"}}
</option>
{{/each}}
</select>
<ValidationError @errors={{get-errors-for this.prepositionalObject}} />
{{#each (sort-by "label" this.prepositionalObjectList) as |o|}}
<option
value={{o.value}}
selected={{eq o.value this.prepositionalObject}}
>
{{o.label}}
</option>
{{/each}}
</select>
<ValidationError @errors={{get-errors-for this.prepositionalObject}} />
</div>
</p>
<this.newPrepositionalObjectComponent
@school={{this.currentSchool}}
Expand Down

0 comments on commit 472f579

Please sign in to comment.