Get items appearing on the sheet, still a lot to do but this is a strong step in the right direction

This commit is contained in:
Oliver 2026-03-15 22:37:55 -06:00
parent 6b03d62234
commit 23a402f11a
9 changed files with 254 additions and 10 deletions

View file

@ -3,5 +3,23 @@
data-group="primary"
data-tab="items"
>
Item Tab Content Here
Total Weight: {{totalWeight}}
<hr>
{{#each itemGroups as | group |}}
<section>
<div class="header">
<span class="name">
{{ group.name }}
</span>
<span class="weight">
{{ group.weight }}
</span>
</div>
<ul class="item-list">
{{#each group.items as |item|}}
{{> (systemFilePath "templates/PlayerSheet/item.hbs") item }}
{{/each}}
</ul>
</section>
{{/each}}
</div>

View file

@ -1 +1,29 @@
<div></div>
<li
class="item"
data-item-uuid="{{uuid}}"
>
<div
class="summary"
{{#if canExpand}}
data-action="toggleExpand"
{{/if}}
>
<img
src="{{img}}"
alt=""
>
<div class="title">
<span class="name">{{ name }}</span>
<span class="subtitle">{{ weight }}</span>
</div>
<input
type="number"
value="{{quantity}}"
>
</div>
{{#if canExpand}}
<div class="full-details" data-expanded="{{isExpanded}}">
{{{ description }}}
</div>
{{/if}}
</li>