Gesina Schwalbe
e6b51c66a6
- added isPhysical boolean to getData output of item-sheet.ts - added isPhysical checks for displays of physical-only information in templates
37 lines
1.7 KiB
Handlebars
37 lines
1.7 KiB
Handlebars
{{!-- ======================================================================== --}}
|
|
{{!-- INLINE PARTIAL DEFINITIONS --}}
|
|
{{!-- ======================================================================== --}}
|
|
|
|
|
|
{{#*inline "talentRankBasicProperty" }}
|
|
<div class="basic-property">
|
|
<label for="data.rank.{{property}}">{{localize localizeString}}</label>
|
|
<input type="number" min="0" step="1" data-dtype="Number" {{disabled}}
|
|
{{#if (eq property 'base') }}max="{{data.rank.max}}"{{/if}}
|
|
name="data.rank.{{property}}" value="{{lookup data.rank property}}" />
|
|
</div>
|
|
{{/inline}}
|
|
|
|
|
|
{{!-- ======================================================================== --}}
|
|
|
|
|
|
<form class="{{cssClass}}" autocomplete="off">
|
|
<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">{{localize (lookup config.itemTypes item.type)}}</h2>
|
|
<div class="grid grid-4col basic-properties">
|
|
{{> talentRankBasicProperty data=data property='base' localizeString='DS4.TalentRankBase' }}
|
|
{{> talentRankBasicProperty data=data property='max' localizeString='DS4.TalentRankMax'}}
|
|
{{> talentRankBasicProperty data=data property='mod' localizeString='DS4.TalentRankMod'}}
|
|
{{> talentRankBasicProperty data=data property='total' localizeString='DS4.TalentRankTotal' disabled='disabled'}}
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
{{!-- Common Item body --}}
|
|
{{> systems/ds4/templates/item/partials/body.hbs}}
|
|
|
|
</form>
|