From 3b92242eb780e3d1a17c8a6e962a67d05f311b16 Mon Sep 17 00:00:00 2001 From: Gesina Schwalbe Date: Tue, 29 Dec 2020 22:02:43 +0100 Subject: [PATCH] added equipment list to char sheet --- src/templates/actor/partials/items.hbs | 57 +++++++++++++++++++++++--- 1 file changed, 52 insertions(+), 5 deletions(-) diff --git a/src/templates/actor/partials/items.hbs b/src/templates/actor/partials/items.hbs index 602c9a0e..874f1fe9 100644 --- a/src/templates/actor/partials/items.hbs +++ b/src/templates/actor/partials/items.hbs @@ -52,7 +52,7 @@ {{!-- description --}}
{{{itemData.description}}}
{{!-- edit & delete buttons --}} -
+
@@ -106,7 +106,7 @@ {{!-- description --}}
{{{itemData.description}}}
{{!-- edit & delete buttons --}} -
+
@@ -157,7 +157,7 @@ {{!-- description --}}
{{{itemData.description}}}
{{!-- edit & delete buttons --}} -
+
@@ -201,11 +201,58 @@
{{itemData.quantity}}
{{!-- name --}} -

{{item.name}}

+

{{item.name}}

+ {{!-- storage location --}} +
{{{itemData.storageLocation}}}
{{!-- SPECIFIC --}} {{!-- description --}}
{{{itemData.description}}}
{{!-- edit & delete buttons --}} -
+
+ + +
+ + {{/with}} + {{/each}} + + + {{!-- EQUIPMENT --}} +

{{localize "DS4.ItemTypeEquipment"}}

{{!-- SPECIFIC --}} +
    +
  1. +
    +
    +
    #
    {{!-- amount --}} +
    +
    {{localize "DS4.ItemName"}}
    +
    {{localize "DS4.StorageLocation"}}
    {{!-- SPECIFIC --}} +
    {{localize "DS4.Description"}}
    + {{!-- add button --}} +
    {{!-- SPECIFIC --}} + + + {{localize "DS4.ActionAddItem"}} +
    +
  2. + {{#each itemsByType.equipment as |item id|}} {{!-- SPECIFIC --}} + {{#with item.data.data as |itemData|}} +
  3. +
    + {{!-- image --}} +
    + +
    + {{!-- amount --}} +
    {{itemData.quantity}}
    +
    + {{!-- name --}} +

    {{item.name}}

    + {{!-- storage location --}} +
    {{{itemData.storageLocation}}}
    {{!-- SPECIFIC --}} + {{!-- description --}} +
    {{{itemData.description}}}
    + {{!-- edit & delete buttons --}} +