Lay the foundation for the per-item templating in the inventory

This commit is contained in:
Oliver-Akins 2024-03-17 21:10:34 -06:00
parent 5e2fb95c73
commit 6d14d70f3e
5 changed files with 20 additions and 7 deletions

View file

@ -10,11 +10,11 @@
<h2>{{filter.label}}</h2>
<hr>
<div class="{{@key}}-list">
<div>Item</div>
<div>Item</div>
<div>Item</div>
<div>Item</div>
<div>Item</div>
{{#each (lookup @root.items @key) as | item |}}
{{> (concat "dotdungeon.pc.v2." @../key) @root item=item}}
{{else}}
No items found
{{/each}}
</div>
</section>
{{/if}}

View file

@ -0,0 +1,6 @@
<div class="material">
Material Name
<button type="button">-</button>
X
<button type="button">+</button>
</div>

View file

@ -0,0 +1,6 @@
<div class="untyped">
{{item.name}}
<button type="button">-</button>
X
<button type="button">+</button>
</div>