bol/templates/actor/parts/tabs/actor-features.hbs

44 lines
2.4 KiB
Handlebars
Raw Permalink Normal View History

{{#each features as | features key|}}
{{#if (gt (count features.items) 0)}}
<ol class="items-list">
<li class="item flexrow item-header">
<div class="item-name flex4 left">{{localize features.label}}</div>
{{#if ranked}}
<div class="item-field flex2 center">{{localize "BOL.ui.rank"}}</div>
{{/if}}
<div class="item-field flex1 right"></div>
</li>
{{#each features.items as |item id|}}
<li class="item flexrow" data-item-id="{{item._id}}">
<h4 class="item-name flex4 left">
<div class="item-image {{#if (equals key "careers")}}roll-career{{/if}}"><img src="{{item.img}}" title="{{item.name}}"/></div>
<a class="item-edit">{{item.name}}</a>
</h4>
<div class="item-field group-btns center flex2">
{{#if (equals key "careers")}}
2022-07-01 15:48:54 +02:00
<a class="inc-dec-btns" data-operator="minus" data-target="system.rank" data-incr="1" data-min="0" data-max="5"><i class="fas fa-minus-square"></i></a>&nbsp;
<span class="item-field">{{item.system.rank}}</span>&nbsp;
<a class="inc-dec-btns" data-operator="plus" data-target="system.rank" data-incr="1" data-min="0" data-max="5"><i class="fas fa-plus-square"></i></a>
2022-03-20 23:17:52 +01:00
<span class="item-field">&nbsp;&nbsp;</span>&nbsp;
<span class="tooltip-container">
<span class="stat-roll rollable" title="XP" data-roll-type="careerxp" data-key="{{key}}">
<i class="xp-next fas fa-arrow-up"></i></span>
<span class="tooltiptext">
2022-07-01 15:48:54 +02:00
{{#if (eq system.rank 0)}}
2022-03-20 23:17:52 +01:00
1 XP
{{else}}
2022-07-01 15:48:54 +02:00
{{add system.rank 1}} XP
2022-03-20 23:17:52 +01:00
{{/if}}
</span>
</span>
{{/if}}
</div>
<div class="item-field flex1 right">
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ol>
{{/if}}
{{/each}}