ds4/templates/sheets/actor/tabs/character-abilities.hbs

68 lines
3.4 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
--}}
2022-01-21 03:22:17 +01:00
<div class="ds4-sheet-tab tab abilities" data-group="primary" data-tab="abilities">
2021-02-26 01:38:53 +01:00
{{!-- TALENT --}}
<h4 class="ds4-embedded-document-list-title">{{localize 'DS4.ItemTypeTalentPlural'}}</h4>
2021-02-26 01:38:53 +01:00
{{#unless (isEmpty itemsByType.talent)}}
<ol class="ds4-embedded-document-list ds4-embedded-document-list--talent item-list">
{{#> systems/ds4/templates/sheets/actor/components/item-list-header.hbs type='talent'}}
{{!-- rank --}}
2022-11-21 03:00:46 +01:00
<div class="ds4-embedded-document-list__clickable sort-items" data-data-path="system.rank.total"
title="{{localize 'DS4.SortByTalentRank'}}">{{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 |item id|}}
{{#> systems/ds4/templates/sheets/actor/components/item-list-entry.hbs item=item}}
{{!-- rank --}}
<div>{{toRomanNumerals item.system.rank.total}}</div>
2021-04-13 21:40:52 +02:00
{{/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}}
2022-01-21 03:22:17 +01:00
{{> systems/ds4/templates/sheets/shared/components/add-button.hbs title='DS4.UserInteractionAddItemTitle'
documentType='item' type='talent'}}
2021-01-07 20:20:40 +01:00
2021-02-26 01:38:53 +01:00
{{!-- RACIAL ABILITY --}}
<h4 class="ds4-embedded-document-list-title">{{localize 'DS4.ItemTypeRacialAbilityPlural'}}</h4>
2021-02-26 01:38:53 +01:00
{{#unless (isEmpty itemsByType.racialAbility)}}
<ol class="ds4-embedded-document-list ds4-embedded-document-list--racial-ability item-list">
{{> systems/ds4/templates/sheets/actor/components/item-list-header.hbs type='racialAbility'}}
{{#each itemsByType.racialAbility as |item id|}}
{{> systems/ds4/templates/sheets/actor/components/item-list-entry.hbs item=item}}
{{/each}}
</ol>
2021-02-26 01:38:53 +01:00
{{/unless}}
2022-01-21 03:22:17 +01:00
{{> systems/ds4/templates/sheets/shared/components/add-button.hbs title='DS4.UserInteractionAddItemTitle'
documentType='item' type='racialAbility'}}
2021-02-26 01:38:53 +01:00
{{!-- LANGUAGE --}}
<h4 class="ds4-embedded-document-list-title">{{localize 'DS4.ItemTypeLanguagePlural'}}</h4>
2021-02-26 01:38:53 +01:00
{{#unless (isEmpty itemsByType.language)}}
<ol class="ds4-embedded-document-list ds4-embedded-document-list--language item-list">
{{> systems/ds4/templates/sheets/actor/components/item-list-header.hbs type='language'}}
{{#each itemsByType.language as |item id|}}
{{> systems/ds4/templates/sheets/actor/components/item-list-entry.hbs item=item}}
{{/each}}
</ol>
2021-02-26 01:38:53 +01:00
{{/unless}}
2022-01-21 03:22:17 +01:00
{{> systems/ds4/templates/sheets/shared/components/add-button.hbs title='DS4.UserInteractionAddItemTitle'
documentType='item' type='language'}}
2021-02-26 01:38:53 +01:00
{{!-- ALPHABET --}}
<h4 class="ds4-embedded-document-list-title">{{localize 'DS4.ItemTypeAlphabetPlural'}}</h4>
2021-02-26 01:38:53 +01:00
{{#unless (isEmpty itemsByType.alphabet)}}
<ol class="ds4-embedded-document-list ds4-embedded-document-list--alphabet item-list">
{{> systems/ds4/templates/sheets/actor/components/item-list-header.hbs type='alphabet'}}
{{#each itemsByType.alphabet as |item id|}}
{{> systems/ds4/templates/sheets/actor/components/item-list-entry.hbs item=item}}
{{/each}}
</ol>
2021-02-26 01:38:53 +01:00
{{/unless}}
2022-01-21 03:22:17 +01:00
{{> systems/ds4/templates/sheets/shared/components/add-button.hbs title='DS4.UserInteractionAddItemTitle'
documentType='item' type='alphabet'}}
</div>