bol/templates/item/parts/properties/item-properties.hbs

63 lines
2.3 KiB
Handlebars
Raw Normal View History

2021-11-08 14:40:29 +01:00
<!--<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">
2021-11-08 14:40:29 +01:00
<label class="property-label">{{localize "BOL.ui.subtype"}}</label>
<select name="data.subtype" value="{{data.subtype}}" data-dtype="String">
{{#select data.subtype}}
2021-11-08 14:40:29 +01:00
{{#each config.equipmentCategories as |item id|}}
<option value="{{id}}">{{localize item}}</option>
{{/each}}
{{/select}}
</select>
</div>
2021-11-08 14:40:29 +01:00
<hr/>
<div class="property flexrow">
2021-11-08 14:40:29 +01:00
<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">
2021-11-08 14:40:29 +01:00
<label class="property-label">{{localize "BOL.ui.weight"}}</label>
<input type="text" name="data.weight" value="{{data.weight}}" data-dtype="Number"/>
</div>
2021-11-08 14:40:29 +01:00
<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>
2021-11-08 14:40:29 +01:00
</div>
{{#if data.properties.equipable}}
{{> "systems/bol/templates/item/parts/properties/item/equipment-properties.hbs"}}
2021-11-08 14:40:29 +01:00
{{/if}}
{{#if data.properties.weapon}}
{{> "systems/bol/templates/item/parts/properties/item/weapon-properties.hbs"}}
2021-11-08 14:40:29 +01:00
{{/if}}
{{#if (equals data.properties.protection)}}
{{> "systems/bol/templates/item/parts/properties/item/protection-properties.hbs"}}
2021-11-08 14:40:29 +01:00
{{/if}}
{{#if data.properties.shield}}
{{> "systems/bol/templates/item/parts/properties/item/shield-properties.hbs"}}
2021-11-08 14:40:29 +01:00
{{/if}}