ds4/templates/sheets/item/components/properties/physical.hbs
Johannes Loher 6ac9f49463
feat!: migrate to v12
BREAKING CHANGE: Support for v11 has been dropped
2025-02-22 16:00:03 +01:00

34 lines
1.6 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">
{{selectOptions config.i18n.itemAvailabilities selected=data.system.availability}}
</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>