modify ui

This commit is contained in:
Siegfried Krug 2021-01-16 14:59:54 +01:00
parent c10ab44ea9
commit 03287b3b98
2 changed files with 9 additions and 13 deletions

View file

@ -190,7 +190,7 @@ export const DS4 = {
}, },
/** /**
* Define currency elements for handlebars of a character * Define currency elements of a character
*/ */
currency: { currency: {
gold: "DS4.CurrencyGold", gold: "DS4.CurrencyGold",

View file

@ -97,20 +97,16 @@
<div class="tab inventory" data-group="primary" data-tab="inventory"> <div class="tab inventory" data-group="primary" data-tab="inventory">
{{!-- Money--}}
{{!-- Money --}}
<h4 class="items-list-title">{{localize 'DS4.Currency'}}</h4> <h4 class="items-list-title">{{localize 'DS4.Currency'}}</h4>
<ol class="items-list"> <ol class="items-list">
<li class="item flexrow item-header"> <li class="item flexrow item-header">
{{#each config.currency as |currency-name|}} <div class="flex05 item-num-val">{{config.currency.gold}}</div>
<div class="flex3 item-num-val">{{currency-name}}</div> <input class="flex05 item-num-val item-change" type="number" min="0" step="1" name="data.currency.gold" value="{{data.currency.gold}}" data-dtype="Number" />
{{/each}} <div class="flex05 item-num-val">{{config.currency.silver}}</div>
</li> <input class="flex05 item-num-val item-change" type="number" min="0" step="1" name="data.currency.silver" value="{{data.currency.silver}}" data-dtype="Number" />
<li class="item flexrow"> <div class="flex05 item-num-val">{{config.currency.copper}}</div>
{{#each data.currency as |currency-data-value currency-data-key|}} <input class="flex05 item-num-val item-change" type="number" min="0" step="1" name="data.currency.copper" value="{{data.currency.copper}}" data-dtype="Number" />
<input class="flex3 item-num-val item-change" name="data.currency.{{currency-data-key}}" value="{{currency-data-value}}"
data-dtype="Number" />
{{/each}}
</li> </li>
</ol> </ol>