Vincent Vandemeulebrouck
111fac2b2d
- le changement de terrain change l'affichage de compétences - le total de fatigue est affiché (ajustement + base)
59 lines
2.5 KiB
Handlebars
59 lines
2.5 KiB
Handlebars
<form class="dialog-fatigue-voyage">
|
|
<div class="flexcol">
|
|
<div class="flexrow">
|
|
<label for="code-terrain" class="flex-shrink">Type de terrain</label>
|
|
<div>
|
|
<select type="text" name="code-terrain" value="{{typeTerrain.code}}" data-dtype="String">
|
|
{{#select typeTerrain.code}}
|
|
{{#each tableauFatigueMarche as |ligne|}}
|
|
<option value="{{ligne.code}}">{{ligne.label}} - {{ligne.description}}</option>
|
|
{{/each}}
|
|
{{/select}}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="flexrow">
|
|
<label for="vitesse-deplacement" class="flex-shrink">Vitesse de marche</label>
|
|
<div>
|
|
<select type="text" name="vitesse-deplacement" value="{{vitesseDeplacement}}" data-dtype="String">
|
|
{{#select vitesseDeplacement}}
|
|
{{#each typeTerrain.vitesses as |rythme|}}
|
|
{{> 'systems/foundryvtt-reve-de-dragon/templates/voyage/option-vitesse-fatigue.hbs' vitesse=rythme.vitesse fatigue=rythme.fatigue}}
|
|
{{/each}}
|
|
{{/select}}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="flexrow">
|
|
<label for="nombre-heures" class="flex-shrink">Nombre d'heures</label>
|
|
<div>
|
|
<input type="number" name="nombre-heures" class="number-x2 nombre-heures" data-dtype="Number" value="{{nombreHeures}}" min="1" max="8"/> heures
|
|
</div>
|
|
</div>
|
|
<div class="flexrow">
|
|
<label for="base-fatigue" class="flex-shrink">Fatigue à appliquer</label>
|
|
<div>
|
|
<input type="number" name="base-fatigue" class="number-x2 base-fatigue" data-dtype="Number" value="{{nombreHeures}}" min="1" max="60"/>
|
|
</div>
|
|
</div>
|
|
<div><hr></div>
|
|
<div class="flexrow fatigue-actors-list">
|
|
<ul class="item-list alterne-list scrollable-list">
|
|
<li class="competence-header flexrow">
|
|
<span class="flex-grow-2">Personnage</span>
|
|
<span class="flex-grow-2">Survies</span>
|
|
<span class="flex-grow-1" data-tooltip="Ajustements à appliquer (par exemple, repos à cheval)">Ajustements</span>
|
|
<span class="flex-grow-1" data-tooltip="Total de fatigue pour le voyageur">Total</span>
|
|
</li>
|
|
{{#each playerActors as |selected|}}
|
|
{{>'systems/foundryvtt-reve-de-dragon/templates/voyage/fatigue-actor.hbs' voyageur=selected survies=@root.typeTerrain.survies}}
|
|
{{/each}}
|
|
</ul>
|
|
</div>
|
|
<hr>
|
|
<div class="flexrow">
|
|
<span class="flex-shrink"></span>
|
|
<button name="appliquer-fatigue">Appliquer la fatigue</button>
|
|
</div>
|
|
</div>
|
|
</form> |