33 lines
1.6 KiB
HTML
33 lines
1.6 KiB
HTML
<li class="item flexrow list-item" data-item-id="{{item._id}}" draggable="true">
|
|
<img class="sheet-competence-img" src="{{item.img}}" title="{{item.name}}"/>
|
|
|
|
{{#if (eq item.type 'conteneur')}}
|
|
<span class="item-name conteneur-name flex-grow"><a data-item-id="{{item._id}}">+{{item.name}}</a></span>
|
|
{{else}}
|
|
<span class="item-name flex-grow">{{item.name}}</span>
|
|
{{/if}}
|
|
<span class="item-quantite">{{item.system.quantite}}
|
|
{{#if (gt item.system.quantite 1)}}
|
|
<a class="item-control item-split" title="Séparer"><i class="fas fa-unlink"></i></a>
|
|
{{/if}}
|
|
</span>
|
|
<span class="item-quantite">{{numberFormat item.system.encTotal decimals=2}}</span>
|
|
<div class="item-controls flex-grow">
|
|
{{#unless item.estContenu}}
|
|
{{#if (ne item.type 'conteneur')}}
|
|
<a class="item-control 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}}
|
|
{{/unless}}
|
|
<a class="item-control item-edit" title="Editer"><i class="fas fa-edit"></i></a>
|
|
<a class="item-control item-delete" title="Supprimer"><i class="fas fa-trash"></i></a>
|
|
{{#if (or (eq item.type 'arme') (eq item.type 'conteneur') item.system.quantite)}}
|
|
|
|
<a class="item-control item-vendre" title="Vendre ou donner"><i class="fas fa-comments-dollar"></i></a>
|
|
{{/if}}
|
|
<a class="item-control item-montrer" title="Montrer"><i class="fas fa-comment"></i></a>
|
|
{{#if item.system.actionPrincipale}}
|
|
<a class="item-name item-action">{{item.system.actionPrincipale}}</a>
|
|
{{/if}}
|
|
</div>
|
|
</li>
|