added language item
- added to database and localization definitions - added sheet - added to talents overview
This commit is contained in:
parent
9addb66a50
commit
f8e1f32439
8 changed files with 60 additions and 17 deletions
|
@ -25,7 +25,6 @@
|
|||
!-- The partial assumes a variable item to be given in the context.
|
||||
!--
|
||||
!-- @param item: hand over the item to the partial as hash parameter
|
||||
!-- @param partial-block: hand over custom children of the flexbox in the partial block.
|
||||
--}}
|
||||
{{#*inline "talentListEntry"}}
|
||||
<li class="item flexrow" data-item-id="{{item._id}}">
|
||||
|
@ -58,14 +57,14 @@
|
|||
|
||||
|
||||
{{!--
|
||||
!-- Render a racial ability list row from a given item.
|
||||
!-- Render a list row for a base item from a given item.
|
||||
!-- Base item means it just has an image, a description, and a name (and effects).
|
||||
!-- It is a flexbox with a child for each item value of interest.
|
||||
!-- The partial assumes a variable item to be given in the context.
|
||||
!--
|
||||
!-- @param item: hand over the item to the partial as hash parameter
|
||||
!-- @param partial-block: hand over custom children of the flexbox in the partial block.
|
||||
--}}
|
||||
{{#*inline "racialAbilityListEntry"}}
|
||||
{{#*inline "baseItemListEntry"}}
|
||||
<li class="item flexrow" data-item-id="{{item._id}}">
|
||||
{{!-- image --}}
|
||||
<div class="flex05 item-image">
|
||||
|
@ -81,6 +80,26 @@
|
|||
</li>
|
||||
{{/inline}}
|
||||
|
||||
{{!--
|
||||
!-- Render a list header for a base item list entries from a given item.
|
||||
!-- The partial assumes a variable dataType to be given in the context.
|
||||
!--
|
||||
!-- @param dataType: the string item type for the list
|
||||
--}}
|
||||
{{#*inline "baseItemListHeader"}}
|
||||
<li class="item flexrow item-header">
|
||||
{{!-- image --}}
|
||||
<div class="flex05 item-image"></div>
|
||||
{{!-- name --}}
|
||||
<div class="flex1 item-name">{{localize 'DS4.ItemName'}}</div>
|
||||
{{!-- description --}}
|
||||
<div class="flex3">{{localize 'DS4.HeadingDescription'}}</div>
|
||||
{{!-- add button --}}
|
||||
{{> systems/ds4/templates/actor/partials/overview-add-button.hbs dataType=dataType }}
|
||||
</li>
|
||||
{{/inline}}
|
||||
|
||||
|
||||
{{!-- ======================================================================== --}}
|
||||
|
||||
|
||||
|
@ -106,18 +125,17 @@
|
|||
|
||||
<h4 class="items-list-title">{{localize 'DS4.ItemTypeRacialAbilityPlural'}}</h4>
|
||||
<ol class="items-list">
|
||||
<li class="item flexrow item-header">
|
||||
{{!-- image --}}
|
||||
<div class="flex05 item-image"></div>
|
||||
{{!-- name --}}
|
||||
<div class="flex1 item-name">{{localize 'DS4.ItemName'}}</div>
|
||||
{{!-- description --}}
|
||||
<div class="flex3">{{localize 'DS4.HeadingDescription'}}</div>
|
||||
{{!-- add button --}}
|
||||
{{> systems/ds4/templates/actor/partials/overview-add-button.hbs dataType='racialAbility' }}
|
||||
</li>
|
||||
{{> baseItemListHeader dataType='racialAbility' }}
|
||||
{{#each itemsByType.racialAbility as |item id|}}
|
||||
{{> racialAbilityListEntry item=item}}
|
||||
{{> baseItemListEntry item=item}}
|
||||
{{/each}}
|
||||
</ol>
|
||||
|
||||
<h4 class="items-list-title">{{localize 'DS4.ItemTypeLanguagePlural'}}</h4>
|
||||
<ol class="items-list">
|
||||
{{> baseItemListHeader dataType='language' }}
|
||||
{{#each itemsByType.language as |item id|}}
|
||||
{{> baseItemListEntry item=item}}
|
||||
{{/each}}
|
||||
</ol>
|
||||
</div>
|
8
src/templates/item/language-sheet.hbs
Normal file
8
src/templates/item/language-sheet.hbs
Normal file
|
@ -0,0 +1,8 @@
|
|||
<form class="{{cssClass}}" autocomplete="off">
|
||||
{{#> systems/ds4/templates/item/partials/sheet-header.hbs}}
|
||||
{{/systems/ds4/templates/item/partials/sheet-header.hbs}}
|
||||
|
||||
{{!-- Common Item body --}}
|
||||
{{> systems/ds4/templates/item/partials/body.hbs}}
|
||||
|
||||
</form>
|
8
src/templates/item/partials/sheet-header.hbs
Normal file
8
src/templates/item/partials/sheet-header.hbs
Normal 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">{{localize (lookup config.itemTypes item.type)}}</h2>
|
||||
{{> @partial-block}}
|
||||
</div>
|
||||
</header>
|
Loading…
Add table
Add a link
Reference in a new issue