46 lines
1.9 KiB
Handlebars
46 lines
1.9 KiB
Handlebars
{{!--
|
|
SPDX-FileCopyrightText: 2021 Johannes Loher
|
|
SPDX-FileCopyrightText: 2021 Gesina Schwalbe
|
|
|
|
SPDX-License-Identifier: MIT
|
|
--}}
|
|
|
|
{{!--
|
|
Render a description tab.
|
|
Additional elements of the side-properties div can be handed over via the @partial-block.
|
|
--}}
|
|
|
|
<div class="tab flexrow description" data-group="primary" data-tab="description">
|
|
<div class="side-properties">
|
|
{{#if isOwned}}
|
|
{{#if (ne data.data.equipped undefined)}}<div class="side-property">
|
|
<label for="data.equipped">{{localize 'DS4.ItemEquipped'}}</label>
|
|
<input type="checkbox" name="data.equipped" data-dtype="Boolean" {{checked data.data.equipped}}
|
|
title="{{localize 'DS4.ItemEquipped'}}">
|
|
</div>
|
|
{{/if}}
|
|
<div class="side-property">
|
|
<label for="data.actor">{{localize 'DS4.ItemOwner'}}</label>
|
|
<a class="entity-link" draggable="true" data-entity="Actor" data-id="{{actor.id}}"><i
|
|
class="fas fa-user"></i>{{actor.name}}</a>
|
|
</div>
|
|
{{#if isPhysical}}
|
|
<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>
|
|
{{/if}}
|
|
{{else}}
|
|
<span>{{localize "DS4.NotOwned"}}</span>
|
|
{{/if}}
|
|
{{> @partial-block}}
|
|
</div>
|
|
<div class="description" title="{{localize 'DS4.HeadingDescription'}}">
|
|
{{editor content=data.data.description target="data.description" button=true owner=owner editable=editable}}
|
|
</div>
|
|
</div>
|