Compatibilité v11/v12

This commit is contained in:
2024-04-26 11:45:58 +02:00
parent aac552102a
commit 699dba5511
139 changed files with 527 additions and 528 deletions

View File

@@ -19,11 +19,7 @@
<label class="generic-label">Attribut 1 : </label>
<select class="status-small-label color-class-common" type="text" name="system.attribut1"
value="{{data.attribut1}}" data-dtype="string">
{{#select data.attribut1}}
{{#each attributs as |attrLabel attrKey|}}
<option value="{{attrKey}}">{{attrLabel}}</option>
{{/each}}
{{/select}}
{{selectOptions config.attributs selected=data.attribut1}}
</select>
</span>
<span class="flexrow">
@@ -31,11 +27,7 @@
<select class="status-small-label color-class-common" type="text" name="system.attribut2"
value="{{data.attribut2}}" data-dtype="string">
<option value="none">Aucun</option>
{{#select data.attribut2}}
{{#each attributs as |attrLabel attrKey|}}
<option value="{{attrKey}}">{{attrLabel}}</option>
{{/each}}
{{/select}}
{{selectOptions config.attributs selected=data.attribut2}}
</select>
</span>
<span class="flexrow">
@@ -43,11 +35,7 @@
<select class="status-small-label color-class-common" type="text" name="system.attribut3"
value="{{data.attribut3}}" data-dtype="string">
<option value="none">Aucun</option>
{{#select data.attribut3}}
{{#each attributs as |attrLabel attrKey|}}
<option value="{{attrKey}}">{{attrLabel}}</option>
{{/each}}
{{/select}}
{{selectOptions config.attributs selected=data.attribut3}}
</select>
</span>