Vincent Vandemeulebrouck
1bf247db33
La confusion entre les Item "objets" et le champ formData.objets rendait les Item "objets" indisponibles (par exemple, les vêtements)
34 lines
1.3 KiB
HTML
34 lines
1.3 KiB
HTML
{{#if @root.options.isObserver}}
|
|
<span class="item-name"><h4>Argent et Monnaies (fortune: {{calc.fortune.sols}} sols {{calc.fortune.deniers}} deniers)</h4></span>
|
|
<ul class="item-list alterne-list">
|
|
{{#each monnaies as |piece id|}}
|
|
<li class="item flexrow list-item" data-item-id="{{piece._id}}">
|
|
<img class="sheet-competence-img" src="{{piece.img}}" title="{{piece.name}}"/>
|
|
<span class="equipement-nom">{{piece.name}}</span>
|
|
<span class="equipement-valeur {{#unless (gt piece.system.cout 0)}}field-error{{/unless}}">
|
|
({{piece.system.cout}} Sols)
|
|
</span>
|
|
{{#if @root.options.isOwner}}
|
|
<span class="equipement-button item-controls">
|
|
<a class="item-quantite-moins"><i class="fas fa-minus-square"></i></a>
|
|
</span>
|
|
{{/if}}
|
|
<span class="equipement-detail">
|
|
<span>{{piece.system.quantite}}</span>
|
|
</span>
|
|
{{#if @root.options.isOwner}}
|
|
<span class="equipement-button item-controls">
|
|
<a class="item-quantite-plus"><i class="fas fa-plus-square"></i></a>
|
|
</span>
|
|
{{/if}}
|
|
<span class="equipement-actions item-controls">
|
|
{{#if @root.options.isOwner}}
|
|
<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}}
|
|
</span>
|
|
</li>
|
|
{{/each}}
|
|
</ul>
|
|
{{/if}}
|