v12 fixes : Fix select to selectOptions
This commit is contained in:
@@ -8,18 +8,10 @@
|
||||
{{!-- Attributes Tab --}}
|
||||
<article class="attributes" data-group="primary" data-tab="attributes">
|
||||
<select name="system.ring">
|
||||
{{#select data.system.ring}}
|
||||
{{#each data.ringsList as |obj|}}
|
||||
<option value="{{obj.id}}">{{obj.label}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
{{selectOptions data.ringsList selected=data.system.ring valueAttr='id' labelAttr='label'}}
|
||||
</select>
|
||||
<select class="attribute" name="system.peculiarity_type">
|
||||
{{#select data.system.peculiarity_type}}
|
||||
{{#each data.subTypesList as |type|}}
|
||||
<option value="{{type.id}}">{{type.label}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
{{selectOptions data.subTypesList selected=data.system.peculiarity_type valueAttr='id' labelAttr='label'}}
|
||||
</select>
|
||||
<label class="cursus attribute-value checkbox">
|
||||
<input type="checkbox" name="system.in_curriculum" {{checked data.system.in_curriculum}} />
|
||||
|
||||
Reference in New Issue
Block a user