ds4/src/templates/sheets/actor/tabs/talents-abilities.hbs

63 lines
2.9 KiB
Handlebars
Raw Normal View History

2021-06-26 22:02:00 +02:00
{{!--
SPDX-FileCopyrightText: 2021 Johannes Loher
SPDX-FileCopyrightText: 2021 Gesina Schwalbe
SPDX-License-Identifier: MIT
--}}
<div class="tab talents-abilities" data-group="primary" data-tab="talents-abilities">
2021-02-26 01:38:53 +01:00
{{!-- TALENT --}}
2021-02-25 22:22:05 +01:00
<h4 class="ds4-item-list-title">{{localize 'DS4.ItemTypeTalentPlural'}}</h4>
2021-02-26 01:38:53 +01:00
{{#unless (isEmpty itemsByType.talent)}}
2021-02-25 22:22:05 +01:00
<ol class="ds4-item-list ds4-item-list--talent item-list">
2021-04-13 21:40:52 +02:00
{{#> systems/ds4/templates/sheets/actor/components/item-list-header.hbs}}
{{!-- rank --}}
<div>{{localize 'DS4.TalentRank'}}</div>
2021-04-13 21:40:52 +02:00
{{/systems/ds4/templates/sheets/actor/components/item-list-header.hbs}}
{{#each itemsByType.talent as |itemData id|}}
2021-04-13 21:40:52 +02:00
{{#> systems/ds4/templates/sheets/actor/components/item-list-entry.hbs itemData=itemData}}
{{!-- rank --}}
2021-04-13 21:40:52 +02:00
{{> systems/ds4/templates/sheets/actor/components/talent-rank-equation.hbs talentRank=itemData.data.rank}}
{{/systems/ds4/templates/sheets/actor/components/item-list-entry.hbs}}
2021-01-07 20:20:40 +01:00
{{/each}}
</ol>
2021-02-26 01:38:53 +01:00
{{/unless}}
2021-04-13 21:40:52 +02:00
{{> systems/ds4/templates/sheets/actor/components/overview-add-button.hbs dataType='talent'}}
2021-01-07 20:20:40 +01:00
2021-02-26 01:38:53 +01:00
{{!-- RACIAL ABILITY --}}
2021-02-25 22:22:05 +01:00
<h4 class="ds4-item-list-title">{{localize 'DS4.ItemTypeRacialAbilityPlural'}}</h4>
2021-02-26 01:38:53 +01:00
{{#unless (isEmpty itemsByType.racialAbility)}}
2021-02-25 22:22:05 +01:00
<ol class="ds4-item-list ds4-item-list--racial-ability item-list">
2021-04-13 21:40:52 +02:00
{{> systems/ds4/templates/sheets/actor/components/item-list-header.hbs}}
{{#each itemsByType.racialAbility as |itemData id|}}
2021-04-13 21:40:52 +02:00
{{> systems/ds4/templates/sheets/actor/components/item-list-entry.hbs itemData=itemData}}
{{/each}}
</ol>
2021-02-26 01:38:53 +01:00
{{/unless}}
2021-04-13 21:40:52 +02:00
{{> systems/ds4/templates/sheets/actor/components/overview-add-button.hbs dataType='racialAbility'}}
2021-02-26 01:38:53 +01:00
{{!-- LANGUAGE --}}
2021-02-25 22:22:05 +01:00
<h4 class="ds4-item-list-title">{{localize 'DS4.ItemTypeLanguagePlural'}}</h4>
2021-02-26 01:38:53 +01:00
{{#unless (isEmpty itemsByType.language)}}
2021-02-25 22:22:05 +01:00
<ol class="ds4-item-list ds4-item-list--language item-list">
2021-04-13 21:40:52 +02:00
{{> systems/ds4/templates/sheets/actor/components/item-list-header.hbs}}
{{#each itemsByType.language as |itemData id|}}
2021-04-13 21:40:52 +02:00
{{> systems/ds4/templates/sheets/actor/components/item-list-entry.hbs itemData=itemData}}
{{/each}}
</ol>
2021-02-26 01:38:53 +01:00
{{/unless}}
2021-04-13 21:40:52 +02:00
{{> systems/ds4/templates/sheets/actor/components/overview-add-button.hbs dataType='language'}}
2021-02-26 01:38:53 +01:00
{{!-- ALPHABET --}}
2021-02-25 22:22:05 +01:00
<h4 class="ds4-item-list-title">{{localize 'DS4.ItemTypeAlphabetPlural'}}</h4>
2021-02-26 01:38:53 +01:00
{{#unless (isEmpty itemsByType.alphabet)}}
2021-02-25 22:22:05 +01:00
<ol class="ds4-item-list ds4-item-list--alphabet item-list">
2021-04-13 21:40:52 +02:00
{{> systems/ds4/templates/sheets/actor/components/item-list-header.hbs}}
{{#each itemsByType.alphabet as |itemData id|}}
2021-04-13 21:40:52 +02:00
{{> systems/ds4/templates/sheets/actor/components/item-list-entry.hbs itemData=itemData}}
{{/each}}
</ol>
2021-02-26 01:38:53 +01:00
{{/unless}}
2021-04-13 21:40:52 +02:00
{{> systems/ds4/templates/sheets/actor/components/overview-add-button.hbs dataType='alphabet'}}
</div>