Vincent Vandemeulebrouck
9fc21e6d97
- dans la liste d'équipement, liste d'actions fournie par code - support d'actions multiples - listener générique Utilisation du mécanisme pour tous les items, standardisation de l'apparence des boutons d'items
38 lines
1.7 KiB
Handlebars
38 lines
1.7 KiB
Handlebars
<li class="item item-blessure flexrow list-item blessure-active-{{lowercase system.label}}" data-item-id="{{id}}"
|
|
data-tooltip="Blessure {{system.label}}">
|
|
<span class="blessure-control">
|
|
<img class="sheet-competence-img" src="{{img}}" />
|
|
{{system.label}}
|
|
</span>
|
|
{{#if (gt system.gravite 6)}}
|
|
<span class="flexrow"></span>
|
|
<span class="flexrow"></span>
|
|
{{else}}
|
|
<span class="flexrow">
|
|
<input type="checkbox" class="blessure-premierssoins-done" name="blessure.{{id}}.premierssoins.done" {{#if system.premierssoins.done}}checked{{/if}}/>
|
|
{{#if system.premierssoins.done}}
|
|
{{#unless system.soinscomplets.done}}
|
|
<input type="text" class="blessure-premierssoins-bonus number-x2" name="blessure.{{id}}.premierssoins.bonus" data-dtype="number" value="{{system.premierssoins.bonus}}"/>
|
|
{{/unless}}
|
|
{{else}}
|
|
<label>{{system.premierssoins.tache}} / {{system.gravite}}</label>
|
|
{{/if}}
|
|
</span>
|
|
<span class="flexrow">
|
|
{{#if system.premierssoins.done}}
|
|
<input type="checkbox" class="blessure-soinscomplets-done" name="blessure.{{id}}.system.soinscomplets.done" {{#if system.soinscomplets.done}}checked{{/if}}/>
|
|
{{#if system.soinscomplets.done}}
|
|
<input type="text" class="blessure-soinscomplets-bonus number-x2" name="blessure.{{id}}.system.soinscomplets.bonus" data-dtype="number" value="{{system.soinscomplets.bonus}}"/>
|
|
{{/if}}
|
|
{{else}}
|
|
<label>Difficulté {{system.difficulte}}</label>
|
|
{{/if}}
|
|
</span>
|
|
{{/if}}
|
|
<span>
|
|
{{#if system.origine}}<span>Par {{system.origine}}</span>{{/if}}
|
|
{{#if system.localisation}}<span>{{system.localisation}}</span>{{/if}}
|
|
</span>
|
|
{{>'systems/foundryvtt-reve-de-dragon/templates/actor/item-action-controls.hbs' item=this options=@root.options}}
|
|
</li>
|