v12 fixes : Fix select to selectOptions

This commit is contained in:
Vlyan
2024-05-24 18:44:24 +02:00
parent fcc2691f4b
commit 3b37859cb5
12 changed files with 87 additions and 201 deletions

View File

@@ -4,11 +4,7 @@
<label>{{localize 'l5r5e.clans.label'}}</label>
<div class="form-fields">
<select class="attribute-dtype" name="clan">
{{#select data.clan}}
{{#each clanList as |value|}}
<option value="{{value.id}}">{{value.label}}</option>
{{/each}}
{{/select}}
{{selectOptions clanList selected=data.clan valueAttr='id' labelAttr='label'}}
</select>
</div>
</div>
@@ -16,11 +12,7 @@
<label>{{localize 'l5r5e.social.gender.title'}}</label>
<div class="form-fields">
<select class="attribute-dtype" name="gender">
{{#select data.gender}}
{{#each genderList as |value|}}
<option value="{{value.id}}">{{value.label}}</option>
{{/each}}
{{/select}}
{{selectOptions genderList selected=data.gender valueAttr='id' labelAttr='label'}}
</select>
</div>
</div>