foundryvtt-frostgrave/templates/actor/partials/actor-tab-items.html

116 lines
5.0 KiB
HTML
Raw Normal View History

2021-05-28 18:16:02 +02:00
<div class="tab gear container is-fluid" data-group="primary" data-tab="items">
2021-05-29 23:20:50 +02:00
{{#each gear as |item id|}}
2021-05-29 23:50:40 +02:00
<div class="box item-card my-2 py-2" data-item-id="{{item.id}}">
2021-05-28 18:16:02 +02:00
<div class="media">
<div class="media-left">
<figure class="image is-square">
<img class="is-cover" src="{{item.img}}" title="{{item.name}}">
</figure>
<nav class="media-center">
<div class="field has-addons">
<p class="control">
<button class="button is-small item-edit">
<span class="icon is-small">
<i class="fas fa-edit"></i>
</span>
</button>
</p>
<p class="control">
<button class="button is-small item-delete">
<span class="icon is-small">
<i class="fas fa-times"></i>
</span>
</button>
</p>
</div>
</nav>
</div>
<div class="media-content">
2021-05-30 00:21:00 +02:00
{{#if (ne item.data.data.damage null)}}
2021-05-31 00:06:05 +02:00
<div class="is-capitalized is-size-5 has-text-weight-bold weapon-attack"><a>{{item.name}} <i class="fas fa-dice-d20"></i></a></div>
2021-05-30 00:21:00 +02:00
{{else}}
<div class="is-capitalized is-size-5 has-text-weight-bold">{{item.name}}</div>
{{/if}}
2021-05-28 18:16:02 +02:00
<div class="field is-grouped is-grouped-multiline">
<div class="control">
<div class="tags has-addons">
2021-05-29 23:20:50 +02:00
<span class="tag is-dark">{{item.data.data.category}}</span>
2021-05-28 18:16:02 +02:00
{{#if (ne item.data.subcategory "None")}}
2021-05-29 23:20:50 +02:00
<span class="tag is-light">{{item.data.data.subcategory}}</span>
2021-05-28 18:16:02 +02:00
{{/if}}
</div>
</div>
2021-05-29 23:20:50 +02:00
{{#if (ne item.data.data.damage null)}}
2021-05-28 18:16:02 +02:00
<div class="control">
<div class="tags has-addons">
2021-05-31 00:06:05 +02:00
<span class="tag is-info">{{localize Damage}}</span>
2021-05-29 23:20:50 +02:00
<span class="tag is-info is-light">{{item.data.data.damage}}</span>
2021-05-28 18:16:02 +02:00
</div>
</div>
{{/if}}
2021-05-29 23:20:50 +02:00
{{#if (ne item.data.data.range null)}}
2021-05-28 18:16:02 +02:00
<div class="control">
<div class="tags has-addons">
2021-05-31 00:06:05 +02:00
<span class="tag is-info">{{localize Range}}</span>
2021-05-29 23:20:50 +02:00
<span class="tag is-info is-light">{{item.data.data.range}}</span>
2021-05-28 18:16:02 +02:00
</div>
</div>
{{/if}}
2021-05-29 23:20:50 +02:00
{{#if (ne item.data.data.armour null)}}
2021-05-28 18:16:02 +02:00
<div class="control">
<div class="tags has-addons">
2021-05-31 00:06:05 +02:00
<span class="tag is-info">{{localize Armour}}</span>
2021-05-29 23:20:50 +02:00
<span class="tag is-info is-light">{{item.data.data.armour}}</span>
2021-05-28 18:16:02 +02:00
</div>
</div>
{{/if}}
2021-05-29 23:20:50 +02:00
{{#if (and (ne item.data.data.effect "") (ne item.data.data.effect null))}}
2021-05-28 18:16:02 +02:00
<div class="control">
<div class="tags has-addons">
2021-05-31 00:06:05 +02:00
<span class="tag is-primary">{{localize Effect}}</span>
2021-05-28 18:16:02 +02:00
<span class="tag is-primary is-light">{{item.data.effect}}</span>
</div>
</div>
{{/if}}
2021-05-29 23:20:50 +02:00
{{#if (ne item.data.data.price null)}}
2021-05-28 18:16:02 +02:00
<div class="control">
<div class="tags has-addons">
2021-05-31 00:06:05 +02:00
<span class="tag is-warning">{{localize Price}}</span>
2021-05-29 23:20:50 +02:00
<span class="tag is-warning is-light">{{item.data.data.price}}</span>
2021-05-28 18:16:02 +02:00
</div>
</div>
{{/if}}
2021-05-29 23:20:50 +02:00
{{#if (ne item.data.data.sale null)}}
2021-05-28 18:16:02 +02:00
<div class="control">
<div class="tags has-addons">
2021-05-31 00:06:05 +02:00
<span class="tag is-warning">{{localize Sale}}</span>
2021-05-29 23:20:50 +02:00
<span class="tag is-warning is-light">{{item.data.data.sale}}</span>
2021-05-28 18:16:02 +02:00
</div>
</div>
{{/if}}
</div>
2021-05-29 23:20:50 +02:00
<div class="media-content">{{{item.data.data.description}}}</div>
2021-05-28 18:16:02 +02:00
</div>
</div>
</div>
{{/each}}
<button class="button is-outlined is-fullwidth item-create mb-4" data-type="item">
<span class="icon is-small">
<i class="fas fa-plus"></i>
</span>
2021-05-31 00:06:05 +02:00
<span>{{localize "FROSTGRAVE.AddItem"}}</span>
2021-05-28 18:16:02 +02:00
</button>
</div>