ds4/templates/sheets/item/components/properties/physical.hbs

38 lines
1.7 KiB
Handlebars

{{!--
SPDX-FileCopyrightText: 2021 Johannes Loher
SPDX-License-Identifier: MIT
--}}
<div class="ds4-item-properties ds4-item-properties--physical">
<h4 class="ds4-item-properties__title">{{localize 'DS4.ItemPropertiesPhysical'}}</h4>
<div class="form-group">
<label for="system.price-{{data._id}}">{{localize "DS4.PriceGold"}}</label>
<input id="system.price-{{data._id}}" data-dtype="Number" type="number" min="0" max="99999" step="0.01"
placeholder="0" name="system.price" value="{{data.system.price}}" />
</div>
<div class="form-group">
<label for="system.availability-{{data._id}}">{{localize "DS4.ItemAvailability"}}</label>
<div class="form-fields">
<select id="system.availability-{{data._id}}" name="system.availability" data-dtype="String">
{{#select data.system.availability}}
{{#each config.i18n.itemAvailabilities as |value key|}}
<option value="{{key}}">{{value}}</option>
{{/each}}
{{/select}}
</select>
</div>
</div>
{{#if isOwned}}
<div class="form-group">
<label for="system.quantity-{{data._id}}">{{localize "DS4.Quantity"}}</label>
<input id="system.quantity-{{data._id}}" data-dtype="Number" type="number" name="system.quantity" placeholder="0"
value="{{data.system.quantity}}" />
</div>
<div class="form-group">
<label for="system.storageLocation-{{data._id}}">{{localize "DS4.StorageLocation"}}</label>
<input id="system.storageLocation-{{data._id}}" data-dtype="String" type="text" name="system.storageLocation"
value="{{data.system.storageLocation}}" />
</div>
{{/if}}
</div>