Reorganize templates file structure

This commit is contained in:
Johannes Loher 2021-04-13 21:40:52 +02:00
parent 17a270d361
commit 49b450daee
57 changed files with 266 additions and 263 deletions

View file

@ -0,0 +1,28 @@
{{!-- Template for the common body (navigation & body sections) of all items. --}}
{{!-- Sheet Tab Navigation --}}
<nav class="sheet-tabs tabs" data-group="primary">
<a class="item" data-tab="description">{{localize "DS4.HeadingDescription"}}</a>
<a class="item" data-tab="effects">{{localize "DS4.HeadingEffects"}}</a>
{{#if isPhysical}}
<a class="item" data-tab="details">{{localize "DS4.HeadingDetails"}}</a>
{{/if}}
</nav>
{{!-- Sheet Body --}}
<section class="sheet-body">
{{!-- Description Tab --}}
{{#> systems/ds4/templates/sheets/item/tabs/description.hbs}}
{{> @partial-block}}
{{/systems/ds4/templates/sheets/item/tabs/description.hbs}}
{{!-- Effects Tab --}}
{{> systems/ds4/templates/sheets/item/tabs/effects.hbs}}
{{#if isPhysical}}
{{!-- Details Tab --}}
{{> systems/ds4/templates/sheets/item/tabs/details.hbs}}
{{/if}}
</section>

View file

@ -0,0 +1,8 @@
<header class="sheet-header">
<img class="profile-img" src="{{item.img}}" data-edit="img" title="{{item.name}}" />
<div class="header-fields flexrow">
<h1 class="charname"><input name="name" type="text" value="{{item.name}}" placeholder="Name" /></h1>
<h2 class="item-type">{{lookup config.i18n.itemTypes item.type}}</h2>
{{> @partial-block}}
</div>
</header>