Update pour v11/v12 et correction d'un bug sur les defenses

This commit is contained in:
2024-04-26 18:35:39 +02:00
parent 234bd44742
commit ec06f0fdcb
47 changed files with 205 additions and 186 deletions

View File

@@ -20,12 +20,8 @@
<ul>
<li class="flexrow">
<label class="item-field-label-long">Lame tutélaire</label>
<select class="item-field-label-long" type="text" name="system.lametutelaire" value="{{system.lametutelaire}}" data-dtype="String">
{{#select system.lametutelaire}}
{{#each tarots as |carte key| }}
<option value="{{carte._id}}">{{carte.name}}</option>
{{/each}}
{{/select}}
<select class="item-field-label-long" type="text" name="system.lametutelaire" data-dtype="String">
{{selectOptions tarots selected=system.lametutelaire valueAttr="_id" labelAttr="name"}}
</select>
</li>

View File

@@ -22,11 +22,7 @@
<li class="flexrow">
<label class="item-field-label-long">Type d'arme</label>
<select class="item-field-label-long" type="text" name="system.armetype" value="{{system.armetype}}" data-dtype="String">
{{#select system.armetype}}
{{#each config.armeTypes as |type key| }}
<option value="{{key}}">{{type}}</option>
{{/each}}
{{/select}}
{{selectOptions config.armeTypes selected=system.armetype}}
</select>
</li>

View File

@@ -26,11 +26,7 @@
<li class="flexrow">
<label class="item-field-label-long">Type </label>
<select class="item-field-label-long" type="text" name="system.tarottype" value="{{system.tarottype}}" data-dtype="String">
{{#select system.tarottype}}
{{#each config.tarotType as |type key| }}
<option value="{{key}}">{{type}}</option>
{{/each}}
{{/select}}
{{selectOptions config.tarotType selected=system.tarottype}}
</select>
</li>