Compatibilité v11/v12
This commit is contained in:
@@ -20,9 +20,7 @@
|
||||
<label class="item-name-label competence-name item-field-label-short">Points</label>
|
||||
<select class="status-small-label color-class-common item-field-label-short" type="text"
|
||||
name="system.balance.pointsloi" value="{{data.balance.pointsloi}}" data-dtype="Number">
|
||||
{{#select data.balance.pointsloi}}
|
||||
{{> systems/fvtt-mournblade/templates/partial-list-niveau.html}}
|
||||
{{/select}}
|
||||
{{selectOptions @root.config.listeNiveauSkill selected=data.balance.pointsloi}}
|
||||
</select>
|
||||
|
||||
<label class="item-name-label competence-name item-field-label-medium">Aspect {{aspect}}</label>
|
||||
@@ -38,9 +36,7 @@
|
||||
<label class="item-name-label competence-name item-field-label-short">Points</label><select
|
||||
class="status-small-label color-class-common item-field-label-short" type="text"
|
||||
name="system.balance.pointschaos" value="{{data.balance.pointschaos}}" data-dtype="Number">
|
||||
{{#select data.balance.pointschaos}}
|
||||
{{> systems/fvtt-mournblade/templates/partial-list-niveau.html}}
|
||||
{{/select}}
|
||||
{{selectOptions @root.config.listeNiveauSkill selected=data.balance.pointschaos}}
|
||||
</select>
|
||||
<label class="item-name-label competence-name item-field-label-medium">Marge {{marge}}</label>
|
||||
</li>
|
||||
@@ -99,9 +95,7 @@
|
||||
class="roll-attribut">{{attr.label}}</a></span>
|
||||
<select class="status-small-label color-class-common item-field-label-short" type="text"
|
||||
name="system.attributs.{{key}}.value" value="{{attr.value}}" data-dtype="Number">
|
||||
{{#select attr.value}}
|
||||
{{> systems/fvtt-mournblade/templates/partial-list-niveau.html}}
|
||||
{{/select}}
|
||||
{{selectOptions @root.config.listeNiveauSkill selected=attr.value}}
|
||||
</select>
|
||||
</li>
|
||||
{{/each}}
|
||||
@@ -271,10 +265,8 @@
|
||||
</span>
|
||||
</div>
|
||||
<select class="status-small-label color-class-common edit-item-data competence-niveau" type="text"
|
||||
data-item-field="niveau" value="{{skill.system.niveau}}" data-dtype="Number">
|
||||
{{#select skill.system.niveau}}
|
||||
{{> systems/fvtt-mournblade/templates/partial-list-niveau.html}}
|
||||
{{/select}}
|
||||
data-item-field="niveau" data-dtype="Number">
|
||||
{{selectOptions @root.config.listeNiveauSkill selected=skill.system.niveau}}
|
||||
</select>
|
||||
|
||||
{{#if (ne skill.system.attribut1 "none")}}
|
||||
|
@@ -36,9 +36,7 @@
|
||||
class="roll-attribut">{{attr.label}}</a></span>
|
||||
<select class="status-small-label color-class-common item-field-label-short" type="text"
|
||||
name="system.attributs.{{key}}.value" value="{{attr.value}}" data-dtype="Number">
|
||||
{{#select attr.value}}
|
||||
{{> systems/fvtt-mournblade/templates/partial-list-niveau-creature.html}}
|
||||
{{/select}}
|
||||
{{selectOptions @root.config.listeNiveauCreature selected=attr.value}}
|
||||
</select>
|
||||
</li>
|
||||
{{/each}}
|
||||
@@ -205,9 +203,7 @@
|
||||
</div>
|
||||
<select class="status-small-label color-class-common edit-item-data competence-niveau" type="text"
|
||||
data-item-field="niveau" value="{{skill.system.niveau}}" data-dtype="Number">
|
||||
{{#select skill.system.niveau}}
|
||||
{{> systems/fvtt-mournblade/templates/partial-list-niveau.html}}
|
||||
{{/select}}
|
||||
{{selectOptions @root.config.listeNiveauSkill selected=skill.system.niveau}}
|
||||
</select>
|
||||
|
||||
{{#if (ne skill.system.attribut1 "none")}}
|
||||
|
@@ -13,13 +13,7 @@
|
||||
<span class="flexrow">
|
||||
<label class="generic-label">Type d'arme : </label>
|
||||
<select class="status-small-label color-class-common" type="text" name="system.typearme" value="{{data.typearme}}" data-dtype="string" >
|
||||
{{#select data.typearme}}
|
||||
<option value="contact">Arme de contact</option>
|
||||
<option value="contactjet">Arme de contact et de Jet</option>
|
||||
<option value="jet">Arme de Jet</option>
|
||||
<option value="tir">Arme de Tir</option>
|
||||
<option value="special">Spécial (capacité/don)</option>
|
||||
{{/select}}
|
||||
{{selectOptions config.typeArmeOptions selected=data.typearme}}
|
||||
</select>
|
||||
</span>
|
||||
<span class="flexrow">
|
||||
|
@@ -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>
|
||||
|
||||
|
@@ -13,13 +13,7 @@
|
||||
<span class="flexrow">
|
||||
<label class="generic-label">Allégeance : </label>
|
||||
<select class="status-small-label color-class-common" type="text" name="system.allegeance" value="{{data.allegeance}}" data-dtype="string" >
|
||||
{{#select data.allegeance}}
|
||||
<option value="tous">Tous</option>
|
||||
<option value="chaos">Chaos</option>
|
||||
<option value="loi">Loi</option>
|
||||
<option value="betes">Seigneurs des Bêtes</option>
|
||||
<option value="elementaires">Seigneurs Elementaires</option>
|
||||
{{/select}}
|
||||
{{selectOptions config.allegeanceOptions selected=data.allegeance}}
|
||||
</select>
|
||||
</span>
|
||||
<span class="flexrow">
|
||||
|
@@ -13,11 +13,7 @@
|
||||
<label class="generic-label">Type de modificateur </label>
|
||||
<select class="status-small-label color-class-common" type="text" name="system.modifiertype"
|
||||
value="{{data.modifiertype}}" data-dtype="string">
|
||||
{{#select data.modifiertype}}
|
||||
{{#each config.modifierTypes as |mod key|}}
|
||||
<option value="{{key}}">{{mod.name}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
{{selectOptions config.modifierTypes selected=data.modifiertype}}
|
||||
</select>
|
||||
</span>
|
||||
|
||||
|
@@ -13,13 +13,7 @@
|
||||
<span class="flexrow">
|
||||
<label class="generic-label">Allégeance : </label>
|
||||
<select class="status-small-label color-class-common" type="text" name="system.allegeance" value="{{data.allegeance}}" data-dtype="string" >
|
||||
{{#select data.allegeance}}
|
||||
<option value="tous">Tous</option>
|
||||
<option value="chaos">Chaos</option>
|
||||
<option value="loi">Loi</option>
|
||||
<option value="betes">Seigneurs des Bêtes</option>
|
||||
<option value="elementaires">Seigneurs Elementaires</option>
|
||||
{{/select}}
|
||||
{{selectOptions config.allegeanceOptions selected=data.allegeance}}
|
||||
</select>
|
||||
</span>
|
||||
|
||||
|
@@ -18,10 +18,7 @@
|
||||
<label class="generic-label">Mode </label>
|
||||
<select class="status-small-label color-class-common" type="text" name="system.mode"
|
||||
value="{{data.mode}}" data-dtype="string">
|
||||
{{#select data.mode}}
|
||||
<option value="prononcee">Prononcée</option>
|
||||
<option value="inscrite">Inscrite</option>
|
||||
{{/select}}
|
||||
{{selectOptions config.effetRuneOptions selected=data.mode}}
|
||||
</select>
|
||||
</span>
|
||||
|
||||
|
@@ -13,13 +13,7 @@
|
||||
<span class="flexrow">
|
||||
<label class="generic-label">Allégeance : </label>
|
||||
<select class="status-small-label color-class-common" type="text" name="system.allegeance" value="{{data.allegeance}}" data-dtype="string" >
|
||||
{{#select data.allegeance}}
|
||||
<option value="tous">Tous</option>
|
||||
<option value="chaos">Chaos</option>
|
||||
<option value="loi">Loi</option>
|
||||
<option value="betes">Seigneurs des Bêtes</option>
|
||||
<option value="elementaires">Seigneurs Elementaires</option>
|
||||
{{/select}}
|
||||
{{selectOptions config.allegeanceOptions selected=data.allegeance}}
|
||||
</select>
|
||||
</span>
|
||||
|
||||
|
@@ -1,35 +0,0 @@
|
||||
<option value="0">0</option>
|
||||
<option value="1">1</option>
|
||||
<option value="2">2</option>
|
||||
<option value="3">3</option>
|
||||
<option value="4">4</option>
|
||||
<option value="5">5</option>
|
||||
<option value="6">6</option>
|
||||
<option value="7">7</option>
|
||||
<option value="8">8</option>
|
||||
<option value="9">9</option>
|
||||
<option value="10">10</option>
|
||||
<option value="11">11</option>
|
||||
<option value="12">12</option>
|
||||
<option value="13">13</option>
|
||||
<option value="14">14</option>
|
||||
<option value="15">15</option>
|
||||
<option value="16">16</option>
|
||||
<option value="17">17</option>
|
||||
<option value="18">18</option>
|
||||
<option value="19">19</option>
|
||||
<option value="20">20</option>
|
||||
<option value="21">21</option>
|
||||
<option value="22">22</option>
|
||||
<option value="23">23</option>
|
||||
<option value="24">24</option>
|
||||
<option value="25">25</option>
|
||||
<option value="26">26</option>
|
||||
<option value="27">27</option>
|
||||
<option value="28">28</option>
|
||||
<option value="29">29</option>
|
||||
<option value="30">30</option>
|
||||
<option value="31">31</option>
|
||||
<option value="32">32</option>
|
||||
<option value="33">33</option>
|
||||
<option value="34">34</option>
|
@@ -1,11 +0,0 @@
|
||||
<option value="0">0</option>
|
||||
<option value="1">1</option>
|
||||
<option value="2">2</option>
|
||||
<option value="3">3</option>
|
||||
<option value="4">4</option>
|
||||
<option value="5">5</option>
|
||||
<option value="6">6</option>
|
||||
<option value="7">7</option>
|
||||
<option value="8">8</option>
|
||||
<option value="9">9</option>
|
||||
<option value="10">10</option>
|
@@ -13,11 +13,7 @@
|
||||
<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 config.attributs selected=attrKey}}
|
||||
</select>
|
||||
{{else}}
|
||||
<span class="roll-dialog-label">{{attr.label}}</span>
|
||||
@@ -41,18 +37,13 @@
|
||||
<span class="roll-dialog-label">Lancement</span>
|
||||
<select class="roll-dialog-label" id="runemode" type="text" name="runemode" value="{{runemode}}"
|
||||
data-dtype="String">
|
||||
{{#select runemode}}
|
||||
<option value="prononcer">Prononcer la rune</option>
|
||||
<option value="inscrire">Inscrire la rune</option>
|
||||
{{/select}}
|
||||
{{selectOptions config.lancementRuneOptions selected=runemode}}
|
||||
</select>
|
||||
</div>
|
||||
<div class="flexrow">
|
||||
<span class="roll-dialog-label">Points d'Ame</span>
|
||||
<select class="roll-dialog-label" id="runeame" type="text" name="runeame" value="{{runeame}}" data-dtype="Number">
|
||||
{{#select runeame}}
|
||||
{{{pointAmeOptions}}}
|
||||
{{/select}}
|
||||
{{selectOptions config.pointsAmeOptions selected=runeame}}
|
||||
</select>
|
||||
</div>
|
||||
{{/if}}
|
||||
@@ -67,11 +58,7 @@
|
||||
<span class="roll-dialog-label">Attaque : </span>
|
||||
<select class="roll-dialog-label" id="typeAttaque" type="text" name="typeAttaque" value="{{typeAttaque}}"
|
||||
data-dtype="String">
|
||||
{{#select typeAttaque}}
|
||||
{{#each config.attaques as |attaque key|}}
|
||||
<option value="{{key}}">{{attaque}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
{{selectOptions config.attaques selected=typeAttaque }}
|
||||
</select>
|
||||
</div>
|
||||
{{#if isMonte}}
|
||||
@@ -118,23 +105,14 @@
|
||||
<span class="roll-dialog-label">Couvert ? : </span>
|
||||
<select class="roll-dialog-label" id="typeCouvert" type="text" name="typeCouvert" value="{{typeCouvert}}"
|
||||
data-dtype="String">
|
||||
{{#select typeCouvert}}
|
||||
{{#each config.couverts as |couvert key|}}
|
||||
<option value="{{key}}">{{couvert.name}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
{{selectOptions config.couverts labelAttr="name" selected=typeCouvert}}
|
||||
</select>
|
||||
</div>
|
||||
<div class="flexrow">
|
||||
<span class="roll-dialog-label">Portée : </span>
|
||||
<select class="roll-dialog-label" id="difficulte" type="text" name="difficulte" value="{{difficulte}}"
|
||||
data-dtype="Number">
|
||||
{{#select difficulte}}
|
||||
<option value="10">Moins que courte (10)</option>
|
||||
<option value="15">Courte et + (15)</option>
|
||||
<option value="20">Moyenne et + (20)</option>
|
||||
<option value="25">Longue et + (25)</option>
|
||||
{{/select}}
|
||||
{{selectOptions config.listePortees selected=difficulte}}
|
||||
</select>
|
||||
</div>
|
||||
{{/if}}
|
||||
@@ -193,9 +171,7 @@
|
||||
<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}}
|
||||
{{selectOptions config.modificateurOptions nameAttr="key" labelAttr="label" selected=modificateur }}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
@@ -204,15 +180,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