bol/templates/item/parts/properties/item-properties.hbs
2021-11-08 14:40:29 +01:00

63 lines
2.3 KiB
Handlebars

<!--<div class="property flexrow">-->
<!-- <label class="property-label">{{localize "BOL.ui.category"}}</label>-->
<!-- <select name="data.subtype" value="{{data.category}}" data-dtype="String">-->
<!-- {{#select data.category}}-->
<!-- {{#each config.itemCategories as |item id|}}-->
<!-- <option value="{{id}}">{{localize item}}</option>-->
<!-- {{/each}}-->
<!-- {{/select}}-->
<!-- </select>-->
<!--</div>-->
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.subtype"}}</label>
<select name="data.subtype" value="{{data.subtype}}" data-dtype="String">
{{#select data.subtype}}
{{#each config.equipmentCategories as |item id|}}
<option value="{{id}}">{{localize item}}</option>
{{/each}}
{{/select}}
</select>
</div>
<hr/>
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.quantity"}}</label>
<input type="text" name="data.quantity" value="{{data.quantity}}" data-dtype="Number"/>
</div>
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.weight"}}</label>
<input type="text" name="data.weight" value="{{data.weight}}" data-dtype="Number"/>
</div>
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.price"}}</label>
<input type="text" name="data.price" value="{{data.price}}" data-dtype="Number"/>
</div>
<hr/>
<div class="form-group stacked">
<!-- <label>Propriétés</label>-->
<div class="form-fields">
{{#each data.properties as |property key|}}
<label class="checkbox">
<input type="checkbox" name="data.properties.{{key}}" {{checked property}}> {{localize key}} ({{key}})
</label>
{{/each}}
</div>
</div>
{{#if data.properties.equipable}}
{{> "systems/bol/templates/item/parts/properties/equipment-properties.hbs"}}
{{/if}}
{{#if data.properties.weapon}}
{{> "systems/bol/templates/item/parts/properties/weapon-properties.hbs"}}
{{/if}}
{{#if (equals data.properties.protection)}}
{{> "systems/bol/templates/item/parts/properties/protection-properties.hbs"}}
{{/if}}
{{#if data.properties.shield}}
{{> "systems/bol/templates/item/parts/properties/shield-properties.hbs"}}
{{/if}}