59 lines
3.3 KiB
Handlebars
59 lines
3.3 KiB
Handlebars
<section class="tab protagonist-{{tab.id}} {{tab.cssClass}}" data-tab="{{tab.id}}" data-group="{{tab.group}}">
|
|
|
|
<fieldset>
|
|
<legend>{{localize "CTHULHUETERNAL.Label.weapons"}}{{#if isEditMode}}
|
|
<a class="action" data-tooltip="{{localize "CTHULHUETERNAL.Tooltip.addWeapon"}}" data-tooltip-direction="UP"><i class="fas fa-plus" data-action="createEquipment"></i></a>{{/if}}</legend>
|
|
<div class="weapons">
|
|
{{#each weapons as |item|}}
|
|
{{!log 'weapon' this}}
|
|
<div class="weapon" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}" data-drag="true" data-drag-type="damage">
|
|
<img class="item-img" src="{{item.img}}" data-tooltip="{{item.name}}" />
|
|
<div class="name" data-tooltip="{{{item.system.description}}}">
|
|
{{item.name}}
|
|
</div>
|
|
<a class="rollable" data-item-id="{{item.id}}" data-action="roll" data-roll-type="damage" data-roll-value="{{item.system.degats}}">{{localize "CTHULHUETERNAL.Label.damage"}} : {{item.system.damage}}</a>
|
|
{{#if @root.isEditMode}}
|
|
<div class="controls">
|
|
<a data-tooltip="{{localize 'CTHULHUETERNAL.Edit'}}" data-action="edit" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}"><i class="fas fa-edit"></i></a>
|
|
<a data-tooltip="{{localize 'CTHULHUETERNAL.Delete'}}" data-action="delete" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}"><i class="fas fa-trash"></i></a>
|
|
</div>
|
|
{{/if}}
|
|
</div>
|
|
{{/each}}
|
|
</div>
|
|
<div class="armors">
|
|
{{#each armors as |item|}}
|
|
{{!log 'armor' this}}
|
|
<div class="armor" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}">
|
|
<img class="item-img" src="{{item.img}}" data-tooltip="{{item.name}}" />
|
|
<div class="name" data-tooltip="{{{item.system.description}}}">
|
|
{{item.name}}
|
|
</div>
|
|
{{localize "CTHULHUETERNAL.Label.armor"}} : {{item.system.protection}}
|
|
<div class="controls">
|
|
<a data-tooltip="{{localize 'CTHULHUETERNAL.Edit'}}" data-action="edit" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}"><i class="fas fa-edit"></i></a>
|
|
<a data-tooltip="{{localize 'CTHULHUETERNAL.Delete'}}" data-action="delete" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}"><i class="fas fa-trash"></i></a>
|
|
</div>
|
|
</div>
|
|
{{/each}}
|
|
</div>
|
|
|
|
<div class="gears">
|
|
{{#each gears as |item|}}
|
|
{{!log 'armor' this}}
|
|
<div class="gear" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}">
|
|
<img class="item-img" src="{{item.img}}" data-tooltip="{{item.name}}" />
|
|
<div class="name" data-tooltip="{{{item.system.description}}}">
|
|
{{item.name}}
|
|
</div>
|
|
{{localize "CTHULHUETERNAL.Label.gear"}} : {{item.system.protection}}
|
|
<div class="controls">
|
|
<a data-tooltip="{{localize 'CTHULHUETERNAL.Edit'}}" data-action="edit" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}"><i class="fas fa-edit"></i></a>
|
|
<a data-tooltip="{{localize 'CTHULHUETERNAL.Delete'}}" data-action="delete" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}"><i class="fas fa-trash"></i></a>
|
|
</div>
|
|
</div>
|
|
{{/each}}
|
|
</div>
|
|
</fieldset>
|
|
|
|
</section> |