5d40642726
Avancement feuille d'items Ajout des données JSON pour génération des compendiums.
28 lines
1.6 KiB
Handlebars
28 lines
1.6 KiB
Handlebars
<ol class="items-list">
|
|
<li class="item flexrow item-header">
|
|
<div class="item-name flex1">{{localize "BOL.itemCategory.equipment"}}</div>
|
|
<!-- <div class="item-controls">-->
|
|
<!-- <a class="item-control item-create" title="Create item" data-type="item"><i class="fas fa-plus"></i> Add item</a>-->
|
|
<!-- </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}}" width="24" height="24"/></div>
|
|
<h4 class="item-name flex1">{{item.name}}</h4>
|
|
{{#if data.properties.equipable}}
|
|
<div class="item-controls-3">
|
|
{{#if data.worn}}
|
|
<a class="item-control item-equip" title="{{localize "BOL.ui.unequip"}}"><i class="fas fa-shield-alt"></i></a>
|
|
{{else}}
|
|
<a class="item-control item-equip" title="{{localize "BOL.ui.equip"}}" style="color:lightgray;"><i class="fas fa-shield-alt"></i></a>
|
|
{{/if}}
|
|
{{else}}
|
|
<div class="item-controls-2">
|
|
{{/if}}
|
|
<a class="item-control item-edit" title="{{localize "BOL.ui.edit"}}"><i class="fas fa-edit"></i></a>
|
|
<a class="item-control item-delete" title="{{localize "BOL.ui.delete"}}"><i class="fas fa-trash"></i></a>
|
|
</div>
|
|
</li>
|
|
{{/each}}
|
|
</ol>
|