foundryvtt-reve-de-dragon/templates/actor-sheet-inventaire-item.html

49 lines
1.9 KiB
HTML
Raw Normal View History

2021-12-05 16:48:18 +01:00
<li class="item flexrow list-item" data-item-id="{{item._id}}" draggable="true">
2022-08-27 16:23:22 +02:00
<span class="equipement-nom {{#if (eq item.type 'conteneur')}}conteneur-name{{/if}} ">
{{#if (eq item.type 'conteneur')}}
{{#if vide}}
2022-08-27 16:23:22 +02:00
<i class="far fa-square"></i>
{{else}}
<a data-item-id="{{item._id}}">
{{#if ouvert}}
<i class="far fa-minus-square"></i>
{{else}}
<i class="far fa-plus-square"></i>
{{/if}}
</a>
{{/if}}
<a data-item-id="{{item._id}}">
<img class="sheet-competence-img" src="{{item.img}}" title="{{item.name}}"/>
2022-08-27 16:23:22 +02:00
<span>{{item.name}}</span>
</a>
2022-08-27 16:23:22 +02:00
{{else}}
<img class="sheet-competence-img" src="{{item.img}}" title="{{item.name}}"/>
<span>{{item.name}}</span>
{{/if}}
</span>
2022-09-06 23:52:21 +02:00
<span class="equipement-detail">{{item.system.quantite}}
{{#if (gt item.system.quantite 1)}}
<a class="item-split" title="Séparer"><i class="fas fa-unlink"></i></a>
2021-04-13 00:58:05 +02:00
{{/if}}
</span>
2022-09-06 23:52:21 +02:00
<span class="equipement-detail">{{numberFormat item.system.encTotal decimals=2}}</span>
<span class="equipement-actions item-controls">
2021-04-11 23:01:35 +02:00
{{#unless item.estContenu}}
{{#if (ne item.type 'conteneur')}}
2022-09-06 23:52:21 +02:00
<a class="item-equip" title="Equiper">{{#if item.system.equipe}}<i class="fas fa-hand-rock"></i>{{else}}<i class="far fa-hand-paper"></i>{{/if}}</a>
{{/if}}
2021-04-11 23:01:35 +02:00
{{/unless}}
<a class="item-edit" title="Editer"><i class="fas fa-edit"></i></a>
<a class="item-delete" title="Supprimer"><i class="fas fa-trash"></i></a>
2021-05-07 17:27:02 +02:00
&nbsp;
2022-09-06 23:52:21 +02:00
{{#if (or (eq item.type 'arme') (eq item.type 'conteneur') item.system.quantite)}}
<a class="item-vendre" title="Vendre ou donner"><i class="fas fa-comments-dollar"></i></a>
2021-05-07 17:27:02 +02:00
{{/if}}
<a class="item-montrer" title="Montrer"><i class="fas fa-comment"></i></a>
{{#if item.actionPrincipale}}
<a class="item-action">{{item.actionPrincipale}}</a>
{{/if}}
2022-08-27 16:23:22 +02:00
</span>
</li>