moved redundant item sheet header into partial
This commit is contained in:
parent
f8e1f32439
commit
1011b85067
7 changed files with 44 additions and 79 deletions
|
@ -1,9 +1,5 @@
|
||||||
<form class="{{cssClass}}" autocomplete="off">
|
<form class="{{cssClass}}" autocomplete="off">
|
||||||
<header class="sheet-header">
|
{{#> systems/ds4/templates/item/partials/sheet-header.hbs}}
|
||||||
<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-3col basic-properties">
|
<div class="grid grid-3col basic-properties">
|
||||||
<div class="basic-property">
|
<div class="basic-property">
|
||||||
<label>{{localize "DS4.ArmorType"}}</label>
|
<label>{{localize "DS4.ArmorType"}}</label>
|
||||||
|
@ -31,8 +27,7 @@
|
||||||
placeholder="0" data-dtype="Number" />
|
placeholder="0" data-dtype="Number" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
{{/systems/ds4/templates/item/partials/sheet-header.hbs}}
|
||||||
</header>
|
|
||||||
|
|
||||||
{{!-- Common Item body --}}
|
{{!-- Common Item body --}}
|
||||||
{{> systems/ds4/templates/item/partials/body.hbs}}
|
{{> systems/ds4/templates/item/partials/body.hbs}}
|
||||||
|
|
|
@ -1,11 +1,6 @@
|
||||||
<form class="{{cssClass}}" autocomplete="off">
|
<form class="{{cssClass}}" autocomplete="off">
|
||||||
<header class="sheet-header">
|
{{#> systems/ds4/templates/item/partials/sheet-header.hbs}}
|
||||||
<img class="profile-img" src="{{item.img}}" data-edit="img" title="{{item.name}}" />
|
{{/systems/ds4/templates/item/partials/sheet-header.hbs}}
|
||||||
<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>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
{{!-- Common Item body --}}
|
{{!-- Common Item body --}}
|
||||||
{{> systems/ds4/templates/item/partials/body.hbs}}
|
{{> systems/ds4/templates/item/partials/body.hbs}}
|
||||||
|
|
|
@ -1,11 +1,6 @@
|
||||||
<form class="{{cssClass}}" autocomplete="off">
|
<form class="{{cssClass}}" autocomplete="off">
|
||||||
<header class="sheet-header">
|
{{#> systems/ds4/templates/item/partials/sheet-header.hbs}}
|
||||||
<img class="profile-img" src="{{item.img}}" data-edit="img" title="{{item.name}}" />
|
{{/systems/ds4/templates/item/partials/sheet-header.hbs}}
|
||||||
<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>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
{{!-- Common Item body --}}
|
{{!-- Common Item body --}}
|
||||||
{{> systems/ds4/templates/item/partials/body.hbs}}
|
{{> systems/ds4/templates/item/partials/body.hbs}}
|
||||||
|
|
|
@ -1,18 +1,13 @@
|
||||||
<form class="{{cssClass}}" autocomplete="off">
|
<form class="{{cssClass}}" autocomplete="off">
|
||||||
<header class="sheet-header">
|
{{#> systems/ds4/templates/item/partials/sheet-header.hbs}}
|
||||||
<img class="profile-img" src="{{item.img}}" data-edit="img" title="{{item.name}}" />
|
<div class="grid grid-1col basic-properties">
|
||||||
<div class="header-fields flexrow">
|
<div class="basic-property">
|
||||||
<h1 class="charname"><input name="name" type="text" value="{{item.name}}" placeholder="Name" /></h1>
|
<label>{{localize "DS4.ArmorValue"}}</label>
|
||||||
<h2 class="item-type">{{localize (lookup config.itemTypes item.type)}}</h2>
|
<input type="text" name="data.armorValue" value="{{data.armorValue}}"
|
||||||
<div class="grid grid-1col basic-properties">
|
placeholder="0" data-dtype="Number" />
|
||||||
<div class="basic-property">
|
|
||||||
<label>{{localize "DS4.ArmorValue"}}</label>
|
|
||||||
<input type="text" name="data.armorValue" value="{{data.armorValue}}"
|
|
||||||
placeholder="0" data-dtype="Number" />
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
{{/systems/ds4/templates/item/partials/sheet-header.hbs}}
|
||||||
|
|
||||||
{{!-- Common Item body --}}
|
{{!-- Common Item body --}}
|
||||||
{{> systems/ds4/templates/item/partials/body.hbs}}
|
{{> systems/ds4/templates/item/partials/body.hbs}}
|
||||||
|
|
|
@ -17,19 +17,14 @@
|
||||||
|
|
||||||
|
|
||||||
<form class="{{cssClass}}" autocomplete="off">
|
<form class="{{cssClass}}" autocomplete="off">
|
||||||
<header class="sheet-header">
|
{{#> systems/ds4/templates/item/partials/sheet-header.hbs}}
|
||||||
<img class="profile-img" src="{{item.img}}" data-edit="img" title="{{item.name}}" />
|
<div class="grid grid-4col basic-properties">
|
||||||
<div class="header-fields flexrow">
|
{{> talentRankBasicProperty data=data property='base' localizeString='DS4.TalentRankBase' }}
|
||||||
<h1 class="charname"><input name="name" type="text" value="{{item.name}}" placeholder="Name" /></h1>
|
{{> talentRankBasicProperty data=data property='max' localizeString='DS4.TalentRankMax'}}
|
||||||
<h2 class="item-type">{{localize (lookup config.itemTypes item.type)}}</h2>
|
{{> talentRankBasicProperty data=data property='mod' localizeString='DS4.TalentRankMod'}}
|
||||||
<div class="grid grid-4col basic-properties">
|
{{> talentRankBasicProperty data=data property='total' localizeString='DS4.TalentRankTotal' disabled='disabled'}}
|
||||||
{{> 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>
|
</div>
|
||||||
</header>
|
{{/systems/ds4/templates/item/partials/sheet-header.hbs}}
|
||||||
|
|
||||||
{{!-- Common Item body --}}
|
{{!-- Common Item body --}}
|
||||||
{{> systems/ds4/templates/item/partials/body.hbs}}
|
{{> systems/ds4/templates/item/partials/body.hbs}}
|
||||||
|
|
|
@ -1,11 +1,6 @@
|
||||||
<form class="{{cssClass}}" autocomplete="off">
|
<form class="{{cssClass}}" autocomplete="off">
|
||||||
<header class="sheet-header">
|
{{#> systems/ds4/templates/item/partials/sheet-header.hbs}}
|
||||||
<img class="profile-img" src="{{item.img}}" data-edit="img" title="{{item.name}}" />
|
{{/systems/ds4/templates/item/partials/sheet-header.hbs}}
|
||||||
<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>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
{{!-- Common Item body --}}
|
{{!-- Common Item body --}}
|
||||||
{{> systems/ds4/templates/item/partials/body.hbs}}
|
{{> systems/ds4/templates/item/partials/body.hbs}}
|
||||||
|
|
|
@ -1,33 +1,28 @@
|
||||||
<form class="{{cssClass}}" autocomplete="off">
|
<form class="{{cssClass}}" autocomplete="off">
|
||||||
<header class="sheet-header">
|
{{#> systems/ds4/templates/item/partials/sheet-header.hbs}}
|
||||||
<img class="profile-img" src="{{item.img}}" data-edit="img" title="{{item.name}}" />
|
<div class="grid grid-3col basic-properties">
|
||||||
<div class="header-fields flexrow">
|
<div class="basic-property">
|
||||||
<h1 class="charname"><input name="name" type="text" value="{{item.name}}" placeholder="Name" /></h1>
|
<label>{{localize "DS4.AttackType"}}</label>
|
||||||
<h2 class="item-type">{{localize (lookup config.itemTypes item.type)}}</h2>
|
<select name="data.attackType" data-type="String">
|
||||||
<div class="grid grid-3col basic-properties">
|
{{#select data.attackType}}
|
||||||
<div class="basic-property">
|
{{#each config.attackTypes as |value key|}}
|
||||||
<label>{{localize "DS4.AttackType"}}</label>
|
<option value="{{key}}">{{value}}</option>
|
||||||
<select name="data.attackType" data-type="String">
|
{{/each}}
|
||||||
{{#select data.attackType}}
|
{{/select}}
|
||||||
{{#each config.attackTypes as |value key|}}
|
</select>
|
||||||
<option value="{{key}}">{{value}}</option>
|
</div>
|
||||||
{{/each}}
|
<div class="basic-property">
|
||||||
{{/select}}
|
<label>{{localize "DS4.WeaponBonus"}}</label>
|
||||||
</select>
|
<input type="number" name="data.weaponBonus" value="{{data.weaponBonus}}"
|
||||||
</div>
|
placeholder="0" data-dtype="Number" />
|
||||||
<div class="basic-property">
|
</div>
|
||||||
<label>{{localize "DS4.WeaponBonus"}}</label>
|
<div class="basic-property">
|
||||||
<input type="number" name="data.weaponBonus" value="{{data.weaponBonus}}"
|
<label>{{localize "DS4.OpponentDefense"}}</label>
|
||||||
placeholder="0" data-dtype="Number" />
|
<input type="number" name="data.opponentDefense"
|
||||||
</div>
|
value="{{data.opponentDefense}}" placeholder="0" data-dtype="Number" />
|
||||||
<div class="basic-property">
|
|
||||||
<label>{{localize "DS4.OpponentDefense"}}</label>
|
|
||||||
<input type="number" name="data.opponentDefense"
|
|
||||||
value="{{data.opponentDefense}}" placeholder="0" data-dtype="Number" />
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
{{/systems/ds4/templates/item/partials/sheet-header.hbs}}
|
||||||
|
|
||||||
{{!-- Common Item body --}}
|
{{!-- Common Item body --}}
|
||||||
{{> systems/ds4/templates/item/partials/body.hbs}}
|
{{> systems/ds4/templates/item/partials/body.hbs}}
|
||||||
|
|
Loading…
Reference in a new issue