Increase reuse of gold and inventory styling (#1804)

This commit is contained in:
Carlos Fernandez 2026-04-15 12:42:30 -04:00 committed by GitHub
parent c6335980ba
commit a77d2088a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 84 additions and 146 deletions

View file

@ -13,18 +13,7 @@
</div>
{{#if this.inventory.hasCurrency}}
<div class="currency-section">
{{#each this.inventory.currencies as |currency key|}}
{{#if currency.enabled}}
<div class="input currency" data-currency="{{key}}">
<span class="drag-handle">
<i class="{{currency.icon}}" inert></i> {{localize currency.label}}
</span>
<input type="text" name="{{currency.field.fieldPath}}" data-allow-delta value="{{currency.value}}" data-dtype="Number" min="0" step="1" />
</div>
{{/if}}
{{/each}}
</div>
{{> "systems/daggerheart/templates/sheets/global/partials/gold.hbs" currencies=inventory.currencies}}
{{/if}}
<div class="items-section">

View file

@ -16,18 +16,7 @@
</div>
{{#if inventory.hasCurrency}}
<div class="currency-section">
{{#each this.inventory.currencies as |currency key|}}
{{#if currency.enabled}}
<div class="input currency" data-currency="{{key}}">
<span class="drag-handle">
<i class="{{currency.icon}}" inert></i> {{localize currency.label}}
</span>
<input type="text" name="{{currency.field.fieldPath}}" data-allow-delta value="{{currency.value}}" data-dtype="Number" min="0" step="1" />
</div>
{{/if}}
{{/each}}
</div>
{{> "systems/daggerheart/templates/sheets/global/partials/gold.hbs" currencies=inventory.currencies}}
{{/if}}
<div class="items-section">