Fix: name unique pour tabulations

This commit is contained in:
Vincent Vandemeulebrouck 2023-01-05 14:36:01 +01:00
parent 46df3d9f11
commit 5ab6c5989e

View File

@ -20,7 +20,7 @@
<a class="item-quantite-moins"><i class="fas fa-minus-square"></i></a> <a class="item-quantite-moins"><i class="fas fa-minus-square"></i></a>
{{/if}} {{/if}}
<input {{#unless options.isOwner}}disabled{{/unless}} type="number" data-dtype="Number" <input {{#unless options.isOwner}}disabled{{/unless}} type="number" data-dtype="Number"
class="item-quantite" name="items[{{key}}].system.quantite" class="item-quantite" name="items[{{item._id}}].system.quantite"
value="{{item.system.quantite}}" /> value="{{item.system.quantite}}" />
{{#if options.isOwner}} {{#if options.isOwner}}
<a class="item-quantite-plus"><i class="fas fa-plus-square"></i></a> <a class="item-quantite-plus"><i class="fas fa-plus-square"></i></a>
@ -31,7 +31,7 @@
<span class="equipement-detail"> <span class="equipement-detail">
{{#unless (and (eq item.type 'conteneur') (not vide))}} {{#unless (and (eq item.type 'conteneur') (not vide))}}
<input {{#unless options.isOwner}}disabled{{/unless}} type="number" data-dtype="Number" <input {{#unless options.isOwner}}disabled{{/unless}} type="number" data-dtype="Number"
class="input-prix number-x3 item-cout" name="items[{{key}}].system.cout" class="input-prix number-x3 item-cout" name="items[{{item._id}}].system.cout"
{{#if options.isObserver}} {{#if options.isObserver}}
value="{{numberFormat item.system.cout decimals=2 sign=false}}" value="{{numberFormat item.system.cout decimals=2 sign=false}}"
{{else}} {{else}}