2020-12-29 01:44:54 +01:00
|
|
|
{{!-- TODO: add localization! --}}
|
2020-12-28 20:38:02 +01:00
|
|
|
{{!-- Tab with overview and quick-actions on owned items --}}
|
|
|
|
<div class="tab items" data-group="primary" data-tab="items">
|
2020-12-29 01:44:54 +01:00
|
|
|
|
|
|
|
{{!-- WEAPONS --}}
|
|
|
|
<h3>Weapons</h3>
|
2020-12-28 20:38:02 +01:00
|
|
|
<ol class="items-list">
|
|
|
|
<li class="item flexrow item-header">
|
2020-12-29 01:44:54 +01:00
|
|
|
<div class="flexrow flex15">
|
|
|
|
<div></div> {{!-- equipped --}}
|
|
|
|
<div class="item-image"></div>
|
|
|
|
<div>#</div> {{!-- amount --}}
|
|
|
|
</div>
|
|
|
|
<div class="item-name flex2">Name</div>
|
|
|
|
<div>AT</div> {{!-- attack type --}} {{!-- SPECIFIC --}}
|
|
|
|
<div class="flexrow flex15">
|
|
|
|
<div>WB</div> {{!-- weapon bonus --}} {{!-- SPECIFIC --}}
|
|
|
|
<div>OD</div> {{!-- opponent defence --}} {{!-- SPECIFIC --}}
|
|
|
|
</div>
|
|
|
|
<div class="flex4">Desc</div> {{!-- description --}}
|
|
|
|
{{!-- add button --}}
|
|
|
|
<div class="item-controls"> {{!-- SPECIFIC --}}
|
|
|
|
<a class="item-control item-create" title="Create item" data-type="weapon"><i class="fas fa-plus"></i>
|
|
|
|
Add item</a> {{!-- SPECIFIC --}}
|
2020-12-28 20:38:02 +01:00
|
|
|
</div>
|
|
|
|
</li>
|
2020-12-29 01:44:54 +01:00
|
|
|
{{#each itemsByType.weapon as |item id|}} {{!-- SPECIFIC --}}
|
|
|
|
{{#with item.data.data as |itemData|}}
|
2020-12-28 20:38:02 +01:00
|
|
|
<li class="item flexrow" data-item-id="{{item._id}}">
|
2020-12-29 01:44:54 +01:00
|
|
|
<div class="flexrow flex15">
|
|
|
|
{{!-- equipped? --}}
|
|
|
|
{{#if itemData.equipped}}<i class="fas fa-check-square"></i>
|
|
|
|
{{else}}<i class="far fa-square"></i>
|
|
|
|
{{/if}} {{!--SPECIFIC --}}
|
|
|
|
{{!-- image --}}
|
|
|
|
<div class="item-image">
|
|
|
|
<img src="{{item.img}}" title="{{item.name}}" width="24" height="24" />
|
|
|
|
</div>
|
|
|
|
{{!-- amount --}}
|
|
|
|
<div>{{itemData.quantity}}</div>
|
|
|
|
</div>
|
|
|
|
{{!-- name --}}
|
|
|
|
<h4 class="item-name flex2">{{item.name}}</h4>
|
|
|
|
{{!-- item specifics --}}
|
|
|
|
<div>{{itemData.attackType}}</div> {{!-- SPECIFIC --}}
|
|
|
|
<div class="flexrow flex15">
|
|
|
|
<div>{{itemData.weaponBonus}}</div> {{!-- SPECIFIC --}}
|
|
|
|
<div>{{itemData.opponentDefense}}</div> {{!-- SPECIFIC --}}
|
2020-12-28 20:38:02 +01:00
|
|
|
</div>
|
2020-12-29 01:44:54 +01:00
|
|
|
{{!-- description --}}
|
|
|
|
<div class="flex4 item-description">{{{itemData.description}}}</div>
|
|
|
|
{{!-- edit & delete buttons --}}
|
|
|
|
<div class="item-controls">
|
2020-12-28 20:38:02 +01:00
|
|
|
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
|
|
|
|
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
|
|
|
</div>
|
|
|
|
</li>
|
2020-12-29 01:44:54 +01:00
|
|
|
{{/with}}
|
2020-12-28 20:38:02 +01:00
|
|
|
{{/each}}
|
|
|
|
</ol>
|
|
|
|
</div>
|