Add v12 support
This commit is contained in:
@@ -12,11 +12,7 @@
|
||||
{{#if (eq attrKey "tochoose")}}
|
||||
<span class="roll-dialog-label">Attribut</span>
|
||||
<select class="status-small-label color-class-common" id ="attrKey" type="text" name="attrKey" value="attrKey" data-dtype="string" >
|
||||
{{#select attrKey}}
|
||||
{{#each attributs as |attrLabel attrKey|}}
|
||||
<option value="{{attrKey}}">{{attrLabel}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
{{selectOptions attributs selected=attrKey}}
|
||||
</select>
|
||||
{{else}}
|
||||
<span class="roll-dialog-label">{{attr.label}}</span>
|
||||
@@ -38,11 +34,7 @@
|
||||
<div class="flexrow">
|
||||
<span class="roll-dialog-label">Dé additionnel : </span>
|
||||
<select class="status-small-label color-class-common" id="charmeDice" type="text" name="charmeDice" value="charmeDice" data-dtype="string" >
|
||||
{{#select charmeDice}}
|
||||
{{#each config.dices as |dice dicekey|}}
|
||||
<option value="{{dice}}">{{dice}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
{{select config.dices selected=charmeDice}}
|
||||
</select>
|
||||
|
||||
</div>
|
||||
@@ -51,10 +43,8 @@
|
||||
<div class="flexrow">
|
||||
<span class="roll-dialog-label">Modificateur : </span>
|
||||
<select class="roll-dialog-label" id="modificateur" type="text" name="modificateur" value="{{modificateur}}"
|
||||
data-dtype="Number">
|
||||
{{#select modificateur}}
|
||||
{{{modificateursOptions}}}
|
||||
{{/select}}
|
||||
data-dtype="String">
|
||||
{{selectOptions config.modificateurOptions valueAttr="key" nameAttr="key" labelAttr="label" selected=modificateur }}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
@@ -70,15 +60,7 @@
|
||||
<span class="roll-dialog-label">Difficulté : </span>
|
||||
<select class="roll-dialog-label" id="difficulte" type="text" name="difficulte" value="{{difficulte}}"
|
||||
data-dtype="Number">
|
||||
{{#select difficulte}}
|
||||
<option value="0">Aucune/Inconnue</option>
|
||||
<option value="5">Facile (5)</option>
|
||||
<option value="10">Moyenne (10)</option>
|
||||
<option value="15">Ardue (15)</option>
|
||||
<option value="20">Hasardeuse (20)</option>
|
||||
<option value="25">Insensée (25)</option>
|
||||
<option value="30">Pure Folie (30)</option>
|
||||
{{/select}}
|
||||
{{selectOptions config.difficulteOptions selected=difficulte}}
|
||||
</select>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
Reference in New Issue
Block a user