Permettre d'éditer les conteneurs de regroupement

This commit is contained in:
Vincent Vandemeulebrouck 2023-01-03 02:20:16 +01:00
parent ceacee8e6c
commit 80be0490eb

View File

@ -40,19 +40,25 @@
{{/unless}} {{/unless}}
</span> </span>
<span class="equipement-actions item-controls"> <span class="equipement-actions item-controls">
{{#unless (and (eq item.type 'conteneur') (not vide))}}
{{#if options.isOwner}} {{#if options.isOwner}}
{{#if (and (eq item.type 'conteneur') (not vide))}}
<a class="item-edit" title="Editer"><i class="fas fa-edit"></i></a>
{{else}}
<a class="item-edit" title="Editer"><i class="fas fa-edit"></i></a> <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> <a class="item-delete" title="Supprimer"><i class="fas fa-trash"></i></a>
{{#if (or item.parent.system.illimite (ne item.system.quantite 0))}} {{#if (or item.parent.system.illimite (ne item.system.quantite 0))}}
<a class="item-vendre" title="Vendre"><i class="fas fa-comments-dollar"></i></a> <a class="item-vendre" title="Vendre"><i class="fas fa-comments-dollar"></i></a>
{{/if}} {{/if}}
{{/if}}
<a class="item-montrer" title="Montrer"><i class="fas fa-comment"></i></a>
{{#if (gt item.system.quantite 0)}} {{#if (gt item.system.quantite 0)}}
<a class="item-acheter" title="Acheter"><i class="fa-regular fa-coins"></i></a> <a class="item-acheter" title="Acheter"><i class="fa-regular fa-coins"></i></a>
{{/if}} {{/if}}
{{/unless}} {{/if}}
{{else}}
{{#if (or item.parent.system.illimite (gt item.system.quantite 0))}}
<a class="item-acheter" title="Acheter"><i class="fa-regular fa-coins"></i></a>
{{/if}}
{{/if}}
<a class="item-montrer" title="Montrer"><i class="fas fa-comment"></i></a>
</span> </span>
</li> </li>
{{/if}} {{/if}}