2021-12-05 16:48:18 +01:00
|
|
|
<li class="item flexrow list-item" data-item-id="{{item._id}}" draggable="true">
|
2020-12-01 22:18:15 +01:00
|
|
|
{{#if (eq item.type 'conteneur')}}
|
2022-08-26 22:23:04 +02:00
|
|
|
<span class="sheet-competence-img conteneur-name">
|
|
|
|
{{#if vide}}
|
|
|
|
<i class="far fa-square"></i>
|
|
|
|
{{else}}
|
|
|
|
<a data-item-id="{{item._id}}">
|
|
|
|
{{#if ouvert}}
|
|
|
|
<i class="far fa-minus-square"></i>
|
|
|
|
<!-- <i class="far fa-caret-square-down"></i> -->
|
|
|
|
{{else}}
|
|
|
|
<i class="far fa-plus-square"></i>
|
|
|
|
<!-- <i class="fas fa-caret-square-right"></i> -->
|
|
|
|
{{/if}}
|
|
|
|
</a>
|
|
|
|
{{/if}}
|
|
|
|
</span>
|
|
|
|
<span class="item-name conteneur-name flex-grow">
|
|
|
|
<a data-item-id="{{item._id}}">
|
|
|
|
<img class="sheet-competence-img" src="{{item.img}}" title="{{item.name}}"/>
|
|
|
|
{{item.name}}
|
|
|
|
</a>
|
|
|
|
</span>
|
2020-12-01 22:18:15 +01:00
|
|
|
{{else}}
|
2022-08-26 22:23:04 +02:00
|
|
|
<img class="sheet-competence-img" src="{{item.img}}" title="{{item.name}}"/>
|
2021-04-06 23:36:35 +02:00
|
|
|
<span class="item-name flex-grow">{{item.name}}</span>
|
2020-12-01 22:18:15 +01:00
|
|
|
{{/if}}
|
2021-04-13 00:58:05 +02:00
|
|
|
<span class="item-quantite">{{item.data.quantite}}
|
|
|
|
{{#if (gt item.data.quantite 1)}}
|
|
|
|
<a class="item-control item-split" title="Séparer"><i class="fas fa-unlink"></i></a>
|
|
|
|
{{/if}}
|
|
|
|
</span>
|
2020-12-01 22:18:15 +01:00
|
|
|
<span class="item-quantite">{{numberFormat item.data.encTotal decimals=2}}</span>
|
2021-04-06 23:36:35 +02:00
|
|
|
<div class="item-controls flex-grow">
|
2021-04-11 23:01:35 +02:00
|
|
|
{{#unless item.estContenu}}
|
2021-05-27 00:29:33 +02:00
|
|
|
{{#if (ne item.type 'conteneur')}}
|
2021-05-27 00:21:43 +02:00
|
|
|
<a class="item-control item-equip" title="Equiper">{{#if item.data.equipe}}<i class="fas fa-hand-rock"></i>{{else}}<i class="far fa-hand-paper"></i>{{/if}}</a>
|
2021-05-27 00:29:33 +02:00
|
|
|
{{/if}}
|
2021-04-11 23:01:35 +02:00
|
|
|
{{/unless}}
|
2020-12-01 22:18:15 +01:00
|
|
|
<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>
|
2021-05-07 17:27:02 +02:00
|
|
|
{{#if (or (eq item.type 'arme') (eq item.type 'conteneur') item.data.quantite)}}
|
|
|
|
|
|
|
|
<a class="item-control item-vendre" title="Vendre ou donner"><i class="fas fa-comments-dollar"></i></a>
|
|
|
|
{{/if}}
|
2021-12-10 01:21:01 +01:00
|
|
|
<a class="item-control item-montrer" title="Montrer"><i class="fas fa-comment"></i></a>
|
2021-04-12 00:16:23 +02:00
|
|
|
{{#if item.data.actionPrincipale}}
|
|
|
|
<a class="item-name item-action">{{item.data.actionPrincipale}}</a>
|
2021-04-06 23:36:35 +02:00
|
|
|
{{/if}}
|
2020-12-01 22:18:15 +01:00
|
|
|
</div>
|
|
|
|
</li>
|
2022-08-26 22:23:04 +02:00
|
|
|
|