refactor: resturcture files so that lincensing info can be bundled properly
This commit is contained in:
parent
699ba74840
commit
1aa284311f
484 changed files with 119 additions and 179 deletions
38
templates/sheets/item/components/properties/physical.hbs
Normal file
38
templates/sheets/item/components/properties/physical.hbs
Normal file
|
@ -0,0 +1,38 @@
|
|||
{{!--
|
||||
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="data.price-{{data._id}}">{{localize "DS4.PriceGold"}}</label>
|
||||
<input id="data.price-{{data._id}}" data-dtype="Number" type="number" min="0" max="99999" step="0.01"
|
||||
placeholder="0" name="data.price" value="{{data.data.price}}" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="data.availability-{{data._id}}">{{localize "DS4.ItemAvailability"}}</label>
|
||||
<div class="form-fields">
|
||||
<select id="data.availability-{{data._id}}" name="data.availability" data-dtype="String">
|
||||
{{#select data.data.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="data.quantity-{{data._id}}">{{localize "DS4.Quantity"}}</label>
|
||||
<input id="data.quantity-{{data._id}}" data-dtype="Number" type="number" name="data.quantity" placeholder="0"
|
||||
value="{{data.data.quantity}}" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="data.storageLocation-{{data._id}}">{{localize "DS4.StorageLocation"}}</label>
|
||||
<input id="data.storageLocation-{{data._id}}" data-dtype="String" type="text" name="data.storageLocation"
|
||||
value="{{data.data.storageLocation}}" />
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue