added shield list in char sheet

This commit is contained in:
Gesina Schwalbe 2020-12-29 20:37:30 +01:00
parent 4e37991b0f
commit d39194c4fa

View file

@ -9,7 +9,7 @@
<ol class="items-list">
<li class="item flexrow item-header">
<div class="flexrow flex15">
<div></div> {{!-- equipped --}}
<div></div> {{!-- equipped --}} {{!-- SPECIFIC --}}
<div class="item-image"></div>
<div>#</div> {{!-- amount --}}
</div>
@ -66,7 +66,7 @@
<ol class="items-list">
<li class="item flexrow item-header">
<div class="flexrow flex15">
<div></div> {{!-- equipped --}}
<div></div> {{!-- equipped --}} {{!-- SPECIFIC --}}
<div class="item-image"></div>
<div>#</div> {{!-- amount --}}
</div>
@ -113,4 +113,54 @@
{{/with}}
{{/each}}
</ol>
{{!-- SHIELD --}}
<h3>{{localize "DS4.ItemTypeShield"}}</h3> {{!-- SPECIFIC --}}
<ol class="items-list">
<li class="item flexrow item-header">
<div class="flexrow flex15">
<div></div> {{!-- equipped --}} {{!-- SPECIFIC --}}
<div class="item-image"></div>
<div>#</div> {{!-- amount --}}
</div>
<div class="item-name flex2">{{localize "DS4.ItemName"}}</div>
<div class="flex05">{{localize "DS4.ArmorValueAbbr"}}</div> {{!-- SPECIFIC --}}
<div class="flex4">{{localize "DS4.Description"}}</div>
{{!-- add button --}}
<div class="item-controls"> {{!-- SPECIFIC --}}
<a class="item-control item-create" title="Create item" data-type="shield"><i class="fas fa-plus"></i>
{{localize "DS4.ActionAddItem"}}</a> {{!-- SPECIFIC --}}
</div>
</li>
{{#each itemsByType.shield as |item id|}} {{!-- SPECIFIC --}}
{{#with item.data.data as |itemData|}}
<li class="item flexrow" data-item-id="{{item._id}}">
<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 class="flex05">{{itemData.armorValue}}</div> {{!-- SPECIFIC --}}
{{!-- description --}}
<div class="flex4 item-description">{{{itemData.description}}}</div>
{{!-- edit & delete buttons --}}
<div class="item-controls">
<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>
{{/with}}
{{/each}}
</ol>
</div>