Convert DS4ItemSheet and all item sheet templates from ApplicationV1 to ItemSheetV2. Add V2 action handlers, tab navigation, and form processing. Update effect management to use DialogV2. Preserve all functionality including tab state and override handling.
35 lines
1.5 KiB
Handlebars
35 lines
1.5 KiB
Handlebars
{{!--
|
|
SPDX-FileCopyrightText: 2021 Johannes Loher
|
|
|
|
SPDX-License-Identifier: MIT
|
|
--}}
|
|
|
|
<form class="{{cssClass}} ds4-sheet-form" autocomplete="off">
|
|
{{!-- Header --}}
|
|
{{> systems/ds4/templates/sheets/item/components/item-header.hbs}}
|
|
|
|
{{!-- Sheet Tab Navigation --}}
|
|
<nav class="ds4-sheet-tab-nav tabs" data-group="primary">
|
|
<a class="ds4-sheet-tab-nav__item" data-action="changeTab" data-tab="description">{{localize 'DS4.HeadingDescription'}}</a>
|
|
<a class="ds4-sheet-tab-nav__item" data-action="changeTab" data-tab="properties">{{localize 'DS4.HeadingProperties'}}</a>
|
|
<a class="ds4-sheet-tab-nav__item" data-action="changeTab" data-tab="effects">{{localize 'DS4.HeadingEffects'}}</a>
|
|
</nav>
|
|
|
|
{{!-- Sheet Body --}}
|
|
<section class="ds4-sheet-body">
|
|
{{!-- Description Tab --}}
|
|
{{> systems/ds4/templates/sheets/item/tabs/description.hbs}}
|
|
|
|
{{!-- Properties Tab --}}
|
|
{{#> systems/ds4/templates/sheets/item/tabs/properties.hbs}}
|
|
{{> systems/ds4/templates/sheets/item/components/properties/protective.hbs}}
|
|
{{#if isOwned}}
|
|
{{> systems/ds4/templates/sheets/item/components/properties/equipable.hbs}}
|
|
{{/if}}
|
|
{{> systems/ds4/templates/sheets/item/components/properties/physical.hbs}}
|
|
{{/systems/ds4/templates/sheets/item/tabs/properties.hbs}}
|
|
|
|
{{!-- Effects Tab --}}
|
|
{{> systems/ds4/templates/sheets/item/tabs/effects.hbs}}
|
|
</section>
|
|
</form>
|