ds4/templates/sheets/actor/components/effect-list-entry.hbs

38 lines
1.5 KiB
Handlebars
Raw Permalink Normal View History

2021-07-20 02:16:43 +02:00
{{!--
SPDX-FileCopyrightText: 2021 Johannes Loher
SPDX-FileCopyrightText: 2021 Gesina Schwalbe
SPDX-License-Identifier: MIT
--}}
{{!--
!-- Render an effect list entry row.
!-- @param effectData: The data of the item.
--}}
<li class="ds4-embedded-document-list__row effect" data-effect-uuid="{{effectData.uuid}}">
2021-07-20 02:16:43 +02:00
{{!-- enabled --}}
<input class="ds4-embedded-document-list__editable ds4-embedded-document-list__editable--checkbox change-effect"
type="checkbox" {{checked (ne effectData.disabled true)}} data-dtype="Boolean" data-property="disabled"
data-inverted="true" title="{{localize 'DS4.EffectEnabled'}}">
2023-06-25 14:33:18 +02:00
{{!-- active --}}
{{#if effectData.active}}<i class="fas fa-check"></i>{{else}}<i class="fas fa-ban"></i>{{/if}}
2021-07-20 02:16:43 +02:00
{{!-- icon --}}
2022-01-21 03:22:17 +01:00
{{> systems/ds4/templates/sheets/shared/components/rollable-image.hbs rollable=false src=effectData.icon
alt=(localize "DS4.DocumentImageAltText" name=effectData.label) title=effectData.label}}
2021-07-20 02:16:43 +02:00
2023-06-25 14:33:18 +02:00
{{!-- name --}}
<div title="{{effectData.name}}">{{effectData.name}}</div>
2021-07-20 02:16:43 +02:00
{{!-- source name --}}
<div title="{{effectData.sourceName}}">{{effectData.sourceName}}</div>
2021-07-20 02:16:43 +02:00
{{!-- factor --}}
<div title="{{effectData.factor}}">{{effectData.factor}}</div>
{{!-- control button group --}}
2022-01-21 03:22:17 +01:00
{{> systems/ds4/templates/sheets/shared/components/control-button-group.hbs documentType="effect"
editTitle="DS4.UserInteractionEditEffectTitle" deleteTitle="DS4.UserInteractionDeleteEffectTitle"}}
2021-07-20 02:16:43 +02:00
</li>