- added Number of items and toggle state in intem category

This commit is contained in:
Vlyan
2021-05-29 13:21:24 +02:00
parent b7195484e1
commit a051bf281b

View File

@@ -1,11 +1,11 @@
{{#each data.splitItemsList as |cat type|}}
<h3>
{{localize (localize 'l5r5e.{type}s.title' type=type)}}
<h3 class="toggle-on-click" data-toggle="inventory-item-list-{{type}}">
{{localize (localize 'l5r5e.{type}s.title' type=type)}} ({{cat.length}})
{{#if ../options.editable}}
<a data-item-type="{{type}}" class="item-control item-add" title="{{localize 'l5r5e.global.add'}}"><i class="fas fa-plus"></i></a>
{{/if}}
</h3>
<ul class="item-list">
<ul class="item-list inventory-item-list-{{type}}">
{{#each cat as |item id|}}
{{> 'systems/l5r5e/templates/items/item/item-entry.html' item=item id=id editable=../../options.editable}}
{{/each}}