2021-06-26 22:02:00 +02:00
|
|
|
{{!--
|
|
|
|
SPDX-FileCopyrightText: 2021 Johannes Loher
|
|
|
|
SPDX-FileCopyrightText: 2021 Gesina Schwalbe
|
|
|
|
|
|
|
|
SPDX-License-Identifier: MIT
|
|
|
|
--}}
|
|
|
|
|
2021-05-13 16:41:16 +02:00
|
|
|
{{!--
|
2021-01-09 18:23:25 +01:00
|
|
|
Render a description tab.
|
|
|
|
Additional elements of the side-properties div can be handed over via the @partial-block.
|
|
|
|
--}}
|
|
|
|
|
2021-05-13 16:41:16 +02:00
|
|
|
<div class="tab flexrow description" data-group="primary" data-tab="description">
|
2020-10-29 22:01:13 +01:00
|
|
|
<div class="side-properties">
|
2020-12-30 23:50:27 +01:00
|
|
|
{{#if isOwned}}
|
2021-06-30 14:24:23 +02:00
|
|
|
{{#if (ne data.data.equipped undefined)}}<div class="side-property">
|
2020-12-30 23:50:27 +01:00
|
|
|
<label for="data.equipped">{{localize 'DS4.ItemEquipped'}}</label>
|
2021-06-30 14:24:23 +02:00
|
|
|
<input type="checkbox" name="data.equipped" data-dtype="Boolean" {{checked data.data.equipped}}
|
|
|
|
title="{{localize 'DS4.ItemEquipped'}}">
|
2020-12-28 17:54:33 +01:00
|
|
|
</div>
|
2020-12-30 23:50:27 +01:00
|
|
|
{{/if}}
|
2021-01-01 21:24:13 +01:00
|
|
|
<div class="side-property">
|
|
|
|
<label for="data.actor">{{localize 'DS4.ItemOwner'}}</label>
|
2022-01-08 18:26:31 +01:00
|
|
|
<a class="content-link entity-link" draggable="true" data-type="Actor" data-entity="Actor" data-id="{{actor.id}}"><i
|
2021-01-01 21:24:13 +01:00
|
|
|
class="fas fa-user"></i>{{actor.name}}</a>
|
|
|
|
</div>
|
2021-01-06 16:10:56 +01:00
|
|
|
{{#if isPhysical}}
|
2021-06-30 14:24:23 +02:00
|
|
|
<div class="side-property">
|
|
|
|
<label for="data.quantity">{{localize 'DS4.Quantity'}}</label>
|
|
|
|
<input type="number" min="0" step="1" data-dtype="Number" name="data.quantity"
|
|
|
|
value="{{data.data.quantity}}" />
|
|
|
|
</div>
|
|
|
|
<div class="side-property">
|
|
|
|
<label for="data.storageLocation">{{localize 'DS4.StorageLocation'}}</label>
|
|
|
|
<input type="text" data-dtype="String" name="data.storageLocation" value="{{data.data.storageLocation}}" />
|
|
|
|
</div>
|
2021-01-06 16:10:56 +01:00
|
|
|
{{/if}}
|
2020-12-30 23:50:27 +01:00
|
|
|
{{else}}
|
2021-01-06 11:39:39 +01:00
|
|
|
<span>{{localize "DS4.NotOwned"}}</span>
|
2020-12-30 23:50:27 +01:00
|
|
|
{{/if}}
|
2021-01-09 18:23:25 +01:00
|
|
|
{{> @partial-block}}
|
2020-12-30 23:50:27 +01:00
|
|
|
</div>
|
2021-01-10 02:05:30 +01:00
|
|
|
<div class="description" title="{{localize 'DS4.HeadingDescription'}}">
|
2021-06-30 14:24:23 +02:00
|
|
|
{{editor content=data.data.description target="data.description" button=true owner=owner editable=editable}}
|
2020-10-29 22:01:13 +01:00
|
|
|
</div>
|
2021-05-13 16:41:16 +02:00
|
|
|
</div>
|