From 80be0490ebf829c1aacad8b8d76191c612364b6f Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Tue, 3 Jan 2023 02:20:16 +0100 Subject: [PATCH] =?UTF-8?q?Permettre=20d'=C3=A9diter=20les=20conteneurs=20?= =?UTF-8?q?de=20regroupement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/actor/commerce-inventaire-item.html | 26 ++++++++++++------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/templates/actor/commerce-inventaire-item.html b/templates/actor/commerce-inventaire-item.html index c25239ac..313b4ef4 100644 --- a/templates/actor/commerce-inventaire-item.html +++ b/templates/actor/commerce-inventaire-item.html @@ -40,19 +40,25 @@ {{/unless}} - {{#unless (and (eq item.type 'conteneur') (not vide))}} {{#if options.isOwner}} - - - {{#if (or item.parent.system.illimite (ne item.system.quantite 0))}} - - {{/if}} + {{#if (and (eq item.type 'conteneur') (not vide))}} + + {{else}} + + + {{#if (or item.parent.system.illimite (ne item.system.quantite 0))}} + + {{/if}} + {{#if (gt item.system.quantite 0)}} + + {{/if}} + {{/if}} + {{else}} + {{#if (or item.parent.system.illimite (gt item.system.quantite 0))}} + + {{/if}} {{/if}} - {{#if (gt item.system.quantite 0)}} - - {{/if}} - {{/unless}} {{/if}}