Skip to content

Commit

Permalink
wrapped <select> and error in <div> so they line up
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelchadwick committed Jul 19, 2024
1 parent 73dfc46 commit 815fde0
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 815fde0

Please sign in to comment.