2021-06-26 22:02:00 +02:00
|
|
|
{{!--
|
|
|
|
SPDX-FileCopyrightText: 2021 Johannes Loher
|
|
|
|
SPDX-FileCopyrightText: 2021 Gesina Schwalbe
|
|
|
|
|
|
|
|
SPDX-License-Identifier: MIT
|
|
|
|
--}}
|
|
|
|
|
2021-02-25 23:30:45 +01:00
|
|
|
{{!--
|
|
|
|
!-- Render an item list header row.
|
|
|
|
!-- If the partial is called with a partial block, the partial block
|
|
|
|
!-- content is inserted before the description heading.
|
|
|
|
!-- @param isEquipable: A flag to enable the equipped column.
|
|
|
|
!-- @param hasQuantity: A flag to enable the quantity column.
|
|
|
|
!-- @param hideDescription: A flag to disable the description column.
|
2021-11-06 01:41:31 +01:00
|
|
|
!-- @param type: The type of the items in this table.
|
2021-02-25 23:30:45 +01:00
|
|
|
!-- @param @partial-block: Custom column headers can be passed using the partial block.
|
|
|
|
--}}
|
2021-11-06 01:41:31 +01:00
|
|
|
<li class="ds4-embedded-document-list__row ds4-embedded-document-list__row--header" data-type={{type}}>
|
2021-02-25 23:30:45 +01:00
|
|
|
{{!-- equipped --}}
|
|
|
|
{{#if isEquipable}}
|
2022-11-21 03:00:46 +01:00
|
|
|
<div class="ds4-embedded-document-list__clickable sort-items" data-data-path="system.equipped"
|
2021-11-06 01:41:31 +01:00
|
|
|
title="{{localize 'DS4.SortByItemEquipped'}}">
|
|
|
|
{{localize 'DS4.ItemEquippedAbbr'}}</div>
|
2021-02-25 23:30:45 +01:00
|
|
|
{{/if}}
|
2021-02-26 01:08:55 +01:00
|
|
|
|
2021-02-25 23:30:45 +01:00
|
|
|
{{!-- image --}}
|
|
|
|
<div></div>
|
2021-02-26 01:08:55 +01:00
|
|
|
|
2021-02-25 23:30:45 +01:00
|
|
|
{{!-- amount --}}
|
|
|
|
{{#if hasQuantity}}
|
2022-11-21 03:00:46 +01:00
|
|
|
<div class="ds4-embedded-document-list__clickable sort-items" data-data-path="system.quantity"
|
2021-11-06 01:41:31 +01:00
|
|
|
title="{{localize 'DS4.SortByQuantity'}}">#</div>
|
2021-02-25 23:30:45 +01:00
|
|
|
{{/if}}
|
2021-02-26 01:08:55 +01:00
|
|
|
|
2021-02-25 23:30:45 +01:00
|
|
|
{{!-- name --}}
|
2021-11-06 01:41:31 +01:00
|
|
|
<div class="ds4-embedded-document-list__clickable sort-items" data-data-path="name"
|
|
|
|
title="{{localize 'DS4.SortByItemName'}}">{{localize 'DS4.ItemName'}}
|
|
|
|
</div>
|
2021-02-26 01:08:55 +01:00
|
|
|
|
2021-02-25 23:30:45 +01:00
|
|
|
{{!-- item type specifics --}}
|
|
|
|
{{#if @partial-block }}
|
|
|
|
{{> @partial-block }}
|
|
|
|
{{/if}}
|
2021-02-26 01:08:55 +01:00
|
|
|
|
2021-02-25 23:30:45 +01:00
|
|
|
{{!-- description --}}
|
|
|
|
{{#unless hideDescription}}
|
2022-11-21 03:00:46 +01:00
|
|
|
<div class="ds4-embedded-document-list__clickable sort-items" data-data-path="system.description"
|
2021-11-06 01:41:31 +01:00
|
|
|
title="{{localize 'DS4.SortByDescription'}}">{{localize
|
|
|
|
'DS4.Description'}}</div>
|
2021-02-25 23:30:45 +01:00
|
|
|
{{/unless}}
|
2021-02-26 01:08:55 +01:00
|
|
|
|
2021-02-25 23:30:45 +01:00
|
|
|
{{!-- control buttons placeholder --}}
|
|
|
|
<div></div>
|
|
|
|
</li>
|