49 lines
1.9 KiB
HTML
49 lines
1.9 KiB
HTML
<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}} ">
|
|
{{#if (eq item.type 'conteneur')}}
|
|
{{#if vide}}
|
|
<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}}"/>
|
|
<span>{{item.name}}</span>
|
|
</a>
|
|
{{else}}
|
|
<img class="sheet-competence-img" src="{{item.img}}" title="{{item.name}}"/>
|
|
<span>{{item.name}}</span>
|
|
{{/if}}
|
|
</span>
|
|
<span class="equipement-detail">{{item.data.quantite}}
|
|
{{#if (gt item.data.quantite 1)}}
|
|
<a class="item-split" title="Séparer"><i class="fas fa-unlink"></i></a>
|
|
{{/if}}
|
|
</span>
|
|
<span class="equipement-detail">{{numberFormat item.data.encTotal decimals=2}}</span>
|
|
<span class="equipement-actions item-controls">
|
|
{{#unless item.estContenu}}
|
|
{{#if (ne item.type 'conteneur')}}
|
|
<a class="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>
|
|
{{/if}}
|
|
{{/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>
|
|
|
|
{{#if (or (eq item.type 'arme') (eq item.type 'conteneur') item.data.quantite)}}
|
|
<a class="item-vendre" title="Vendre ou donner"><i class="fas fa-comments-dollar"></i></a>
|
|
{{/if}}
|
|
<a class="item-montrer" title="Montrer"><i class="fas fa-comment"></i></a>
|
|
{{#if item.data.actionPrincipale}}
|
|
<a class="item-action">{{item.data.actionPrincipale}}</a>
|
|
{{/if}}
|
|
</span>
|
|
</li>
|
|
|