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
45 lines
2.0 KiB
Handlebars
45 lines
2.0 KiB
Handlebars
{{#unless item.system.isHidden}}
|
|
{{#if (ne item.type 'monnaie')}}
|
|
<li class="item flexrow list-item" data-item-id="{{item._id}}" draggable="true">
|
|
<span class="equipement-nom {{#if (eq item.type 'conteneur')}}conteneur-name{{/if}} ">
|
|
<a{{#if (and (ne item.type 'conteneur') options.isObserver)}} class="item-edit"{{/if}} >
|
|
{{#if (eq item.type 'conteneur')}}
|
|
<i class="{{~#if vide}}far fa-square
|
|
{{else if ouvert}}far fa-minus-square
|
|
{{else}}far fa-plus-square
|
|
{{/if~}}"></i>
|
|
{{/if}}
|
|
<img class="sheet-competence-img" src="{{item.img}}" data-tooltip="{{item.name}}"/>
|
|
<span>{{item.name}}</span>
|
|
</a>
|
|
</span>
|
|
{{#unless item.parent.system.illimite}}
|
|
<span class="equipement-detail-buttons flexrow">
|
|
{{#unless (or (eq item.type 'service') (and (eq item.type 'conteneur') (not vide)))}}
|
|
{{#if options.isOwner}}
|
|
<a class="item-quantite-moins"><i class="fa-solid fa-square-minus"></i></a>
|
|
{{/if}}
|
|
<input {{#unless options.isOwner}}disabled{{/unless}} type="number" data-dtype="Number"
|
|
class="item-quantite number-x3" name="items[{{item._id}}].system.quantite"
|
|
value="{{item.system.quantite}}" />
|
|
{{#if options.isOwner}}
|
|
<a class="item-quantite-plus"><i class="fa-solid fa-square-plus"></i></a>
|
|
{{/if}}
|
|
{{/unless}}
|
|
</span>
|
|
{{/unless}}
|
|
<span class="equipement-detail">
|
|
{{#unless (and (eq item.type 'conteneur') (not vide))}}
|
|
<input {{#unless options.isOwner}}disabled{{/unless}} type="number" data-dtype="Number"
|
|
class="input-prix number-x3 item-cout" name="items[{{item._id}}].system.cout"
|
|
{{#if options.isObserver}}
|
|
value="{{numberFormat item.system.cout decimals=2 sign=false}}"
|
|
{{else}}
|
|
value="{{numberFormat (calculerPrixCommercant item) decimals=2 sign=false}}"
|
|
{{/if}} />
|
|
{{/unless}}
|
|
</span>
|
|
{{>'systems/foundryvtt-reve-de-dragon/templates/actor/item-action-controls.hbs' item=item options=@root.options}}
|
|
</li>
|
|
{{/if}}
|
|
{{/unless}} |