bol/templates/actor/parts/tabs/actor-equipment.hbs
2021-11-08 14:40:29 +01:00

25 lines
1.3 KiB
Handlebars

<ol class="items-list">
<li class="item flexrow item-header">
<div class="item-name flex3">{{localize "BOL.itemCategory.equipment"}}</div>
<div class="item-field">{{localize "BOL.ui.quantity"}}</div>
<div class="item-field"></div>
</li>
{{#each data.equipment as |item id|}}
<li class="item flexrow" data-item-id="{{item._id}}">
<div class="item-image"><img src="{{item.img}}" title="{{item.name}}"/></div>
<h4 class="item-name flex3"><a class="item-edit">{{item.name}}</a></h4>
<div class="item-field">{{item.data.quantity}}</div>
{{#if data.properties.equipable}}
{{#if data.worn}}
<div class="item-controls-1"><a class="item-control item-equip" title="{{localize "BOL.ui.unequip"}}"><i class="fas fa-shield-alt"></i></a></div>
{{else}}
<div class="item-controls-1"><a class="item-control item-equip" title="{{localize "BOL.ui.equip"}}" style="color:lightgray;"><i class="fas fa-shield-alt"></i></a></div>
{{/if}}
{{/if}}
<div class="item-controls-1">
<a class="item-control item-delete" title="{{localize "BOL.ui.delete"}}"><i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ol>