Skip to content

Commit

Permalink
chore: fix handlebars select inputs and correct form field styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethaks committed Jun 18, 2024
1 parent 73dec4d commit 268ea64
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 13 deletions.
10 changes: 1 addition & 9 deletions public/templates/apps/actor-settings.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,7 @@ SPDX-License-Identifier: EUPL-1.2
<select id="castingAbility"
name="flags.pf1spheres.castingAbility"
data-dtype="String">
{{#select pf1sFlags.castingAbility }}
<option value="">
</option>
{{#each PF1CONFIG.abilities as |label value|}}
<option value="{{ value }}">
{{ label }}
</option>
{{/each }}
{{/select }}
{{selectOptions PF1CONFIG.abilities selected=pf1sFlags.castingAbility blank="PF1.None" localize=true}}
</select>
</div>
<p class="notes">
Expand Down
8 changes: 5 additions & 3 deletions public/templates/talent-details.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ SPDX-License-Identifier: EUPL-1.2
-->--}}
<div class="form-group sphere-talent-type">
<label>{{ localize "PF1SPHERES.Sphere" }}</label>
<select name="flags.pf1spheres.sphere">
{{selectOptions spheres selected=item.flags.pf1spheres.sphere labelAttr="label"}}
</select>
<div class="form-fields">
<select name="flags.pf1spheres.sphere">
{{selectOptions spheres selected=item.flags.pf1spheres.sphere labelAttr="label"}}
</select>
</div>
</div>
4 changes: 3 additions & 1 deletion public/templates/talent-excluded.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@ SPDX-License-Identifier: EUPL-1.2

<div class="form-group sphere-count-excluded">
<label>{{localize "PF1SPHERES.CountExclude"}}</label>
<input type="checkbox" name="flags.pf1spheres.countExcluded" {{checked item.flags.pf1spheres.countExcluded}}>
<div class="form-fields">
<input type="checkbox" name="flags.pf1spheres.countExcluded" {{checked item.flags.pf1spheres.countExcluded}}>
</div>
</div>

0 comments on commit 268ea64

Please sign in to comment.