moved redundant item sheet header into partial

This commit is contained in:
Gesina Schwalbe 2021-01-08 23:32:35 +01:00
parent f8e1f32439
commit 1011b85067
7 changed files with 44 additions and 79 deletions

View file

@ -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}}

View file

@ -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}}

View file

@ -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}}

View file

@ -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-1col basic-properties"> <div class="grid grid-1col basic-properties">
<div class="basic-property"> <div class="basic-property">
<label>{{localize "DS4.ArmorValue"}}</label> <label>{{localize "DS4.ArmorValue"}}</label>
@ -11,8 +7,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}}

View file

@ -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="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"> <div class="grid grid-4col basic-properties">
{{> talentRankBasicProperty data=data property='base' localizeString='DS4.TalentRankBase' }} {{> talentRankBasicProperty data=data property='base' localizeString='DS4.TalentRankBase' }}
{{> talentRankBasicProperty data=data property='max' localizeString='DS4.TalentRankMax'}} {{> talentRankBasicProperty data=data property='max' localizeString='DS4.TalentRankMax'}}
{{> talentRankBasicProperty data=data property='mod' localizeString='DS4.TalentRankMod'}} {{> talentRankBasicProperty data=data property='mod' localizeString='DS4.TalentRankMod'}}
{{> talentRankBasicProperty data=data property='total' localizeString='DS4.TalentRankTotal' disabled='disabled'}} {{> talentRankBasicProperty data=data property='total' localizeString='DS4.TalentRankTotal' disabled='disabled'}}
</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}}

View file

@ -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}}

View file

@ -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.AttackType"}}</label> <label>{{localize "DS4.AttackType"}}</label>
@ -26,8 +22,7 @@
value="{{data.opponentDefense}}" placeholder="0" data-dtype="Number" /> value="{{data.opponentDefense}}" 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}}