foundryvtt-reve-de-dragon/templates/sommeil/dialog-chateau-dormant.hbs

49 lines
2.0 KiB
Handlebars
Raw Permalink Normal View History

<form class="chateau-dormant">
<div class="flexcol">
<div class="form-group">
<label for="motifStress">Motif de stress</label>
<input type="text" name="motifStress" value="{{motifStress}}" data-dtype="String" />
</div>
<hr>
<ul class="item-list alterne-list">
<li class="competence-header flexrow">
<span class="flex-grow-3">Personnage</span>
<span class="flex-shrink">Insomnie</span>
<span class="flex-grow-1">Sommeil</span>
<span class="flex-shrink">Stress</span>
<span class="flex-grow-1">Moral</span>
<span class="flex-shrink">Ignorer</span>
</li>
{{#each actors as |actor|}}
<li class="item flexrow list-item set-sommeil-actor" data-actor-id="{{actor.id}}">
<span class="flex-grow-3">
<label>
<img class="chat-icon" src="{{actor.img}}" data-tooltip="{{actor.name}}" />
<span>{{actor.name}}</span>
</label>
</span>
<span class="flex-shrink">
<input type="checkbox" class="sommeil-insomnie" {{#if actor.system.sommeil.insomnie}}checked{{/if}}>
</span>
<span class="flex-grow-1">
<input type="number" class="number-x sommeil-heures" data-dtype="Number"
value="{{#if actor.system.sommeil.insomnie}}0{{else}}4{{/if}}"
min="0" max="{{#if actor.system.sommeil.insomnie}}0{{else}}12{{/if}}"
{{#if actor.system.sommeil.insomnie}}disabled{{/if}}/>
h
</span>
<span class="flex-shrink">
<input type="number" class="number-x2 sommeil-stress" value="0" data-dtype="Number" min="0" max="200"/>
</span>
<span class="flex-grow-1 flexrow sommeil-actor-moral">
{{> "systems/foundryvtt-reve-de-dragon/templates/sommeil/sommeil-actor-moral.hbs" actor.system.sommeil}}
</span>
<span class="flex-shrink">
<input type="checkbox" class="sommeil-ignorer">
</span>
</li>
{{/each}}
</ul>
</div>
</form>