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

@@ -2,11 +2,7 @@
{{!-- Npc Type (minion / adversary) --}}
<li>
<select class="attribute-dtype" name="system.type" {{^if data.editable_not_soft_locked}}disabled{{/if}}>
{{#select data.system.type}}
{{#each data.types as |t|}}
<option value="{{t.id}}">{{t.label}}</option>
{{/each}}
{{/select}}
{{selectOptions data.types selected=data.system.type valueAttr='id' labelAttr='label'}}
</select>
</li>
{{!-- Martial --}}