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

39 lines
1.7 KiB
Handlebars
Raw Normal View History

2022-01-21 03:22:17 +01:00
{{!--
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">
2022-11-21 03:00:46 +01:00
<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}}" />
2022-01-21 03:22:17 +01:00
</div>
<div class="form-group">
2022-11-21 03:00:46 +01:00
<label for="system.availability-{{data._id}}">{{localize "DS4.ItemAvailability"}}</label>
2022-01-21 03:22:17 +01:00
<div class="form-fields">
2022-11-21 03:00:46 +01:00
<select id="system.availability-{{data._id}}" name="system.availability" data-dtype="String">
{{#select data.system.availability}}
2022-01-21 03:22:17 +01:00
{{#each config.i18n.itemAvailabilities as |value key|}}
<option value="{{key}}">{{value}}</option>
{{/each}}
{{/select}}
</select>
</div>
</div>
{{#if isOwned}}
<div class="form-group">
2022-11-21 03:00:46 +01:00
<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}}" />
2022-01-21 03:22:17 +01:00
</div>
<div class="form-group">
2022-11-21 03:00:46 +01:00
<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}}" />
2022-01-21 03:22:17 +01:00
</div>
{{/if}}
</div>