2023-02-07 18:05:25 +01:00
|
|
|
{{#unless item.system.isHidden}}
|
2023-01-01 22:21:30 +01:00
|
|
|
{{#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}} ">
|
2023-01-03 01:37:50 +01:00
|
|
|
<a{{#if (and (ne item.type 'conteneur') options.isObserver)}} class="item-edit"{{/if}} >
|
2023-01-01 22:21:30 +01:00
|
|
|
{{#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}}
|
2023-12-04 01:21:05 +01:00
|
|
|
<img class="sheet-competence-img" src="{{item.img}}" data-tooltip="{{item.name}}"/>
|
2023-01-01 22:21:30 +01:00
|
|
|
<span>{{item.name}}</span>
|
|
|
|
</a>
|
|
|
|
</span>
|
2023-01-03 01:19:38 +01:00
|
|
|
{{#unless item.parent.system.illimite}}
|
2023-01-16 23:20:29 +01:00
|
|
|
<span class="equipement-detail-buttons flexrow">
|
2023-01-03 00:31:32 +01:00
|
|
|
{{#unless (or (eq item.type 'service') (and (eq item.type 'conteneur') (not vide)))}}
|
2023-01-03 01:37:50 +01:00
|
|
|
{{#if options.isOwner}}
|
2023-12-10 22:17:49 +01:00
|
|
|
<a class="item-quantite-moins"><i class="fa-solid fa-square-minus"></i></a>
|
2023-01-03 00:31:32 +01:00
|
|
|
{{/if}}
|
2023-01-03 01:37:50 +01:00
|
|
|
<input {{#unless options.isOwner}}disabled{{/unless}} type="number" data-dtype="Number"
|
2023-01-16 23:20:29 +01:00
|
|
|
class="item-quantite number-x3" name="items[{{item._id}}].system.quantite"
|
2023-01-03 01:37:50 +01:00
|
|
|
value="{{item.system.quantite}}" />
|
|
|
|
{{#if options.isOwner}}
|
2023-12-10 22:17:49 +01:00
|
|
|
<a class="item-quantite-plus"><i class="fa-solid fa-square-plus"></i></a>
|
2023-01-03 00:31:32 +01:00
|
|
|
{{/if}}
|
2023-01-01 22:21:30 +01:00
|
|
|
{{/unless}}
|
|
|
|
</span>
|
|
|
|
{{/unless}}
|
|
|
|
<span class="equipement-detail">
|
|
|
|
{{#unless (and (eq item.type 'conteneur') (not vide))}}
|
2023-01-03 01:37:50 +01:00
|
|
|
<input {{#unless options.isOwner}}disabled{{/unless}} type="number" data-dtype="Number"
|
2023-01-05 14:36:01 +01:00
|
|
|
class="input-prix number-x3 item-cout" name="items[{{item._id}}].system.cout"
|
2023-01-03 01:37:50 +01:00
|
|
|
{{#if options.isObserver}}
|
|
|
|
value="{{numberFormat item.system.cout decimals=2 sign=false}}"
|
|
|
|
{{else}}
|
|
|
|
value="{{numberFormat (calculerPrixCommercant item) decimals=2 sign=false}}"
|
|
|
|
{{/if}} />
|
2023-01-01 22:21:30 +01:00
|
|
|
{{/unless}}
|
|
|
|
</span>
|
|
|
|
<span class="equipement-actions item-controls">
|
2023-01-03 01:37:50 +01:00
|
|
|
{{#if options.isOwner}}
|
2023-12-04 01:21:05 +01:00
|
|
|
<a class="item-edit" data-tooltip="Editer"><i class="fas fa-edit"></i></a>
|
2023-01-03 23:02:07 +01:00
|
|
|
{{#unless (and (eq item.type 'conteneur') (not vide))}}
|
2023-12-04 01:21:05 +01:00
|
|
|
<a class="item-delete" data-tooltip="Supprimer"><i class="fas fa-trash"></i></a>
|
2023-01-03 02:20:16 +01:00
|
|
|
{{#if (or item.parent.system.illimite (ne item.system.quantite 0))}}
|
2023-12-04 01:21:05 +01:00
|
|
|
<a class="item-vendre" data-tooltip="Vendre"><i class="fas fa-comments-dollar"></i></a>
|
2023-01-03 02:20:16 +01:00
|
|
|
{{/if}}
|
2023-01-03 23:02:07 +01:00
|
|
|
{{/unless}}
|
|
|
|
{{/if}}
|
|
|
|
{{#unless (and (eq item.type 'conteneur') (not vide))}}
|
2023-01-03 02:20:16 +01:00
|
|
|
{{#if (or item.parent.system.illimite (gt item.system.quantite 0))}}
|
2023-12-04 01:21:05 +01:00
|
|
|
<a class="item-acheter" data-tooltip="Acheter"><i class="fa-regular fa-coins"></i></a>
|
2023-01-03 02:20:16 +01:00
|
|
|
{{/if}}
|
2023-12-04 01:21:05 +01:00
|
|
|
<a class="item-montrer" data-tooltip="Montrer"><i class="fas fa-comment"></i></a>
|
2023-01-03 23:02:07 +01:00
|
|
|
{{/unless}}
|
2023-01-01 22:21:30 +01:00
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
{{/if}}
|
2023-02-07 18:05:25 +01:00
|
|
|
{{/unless}}
|