ds4/src/templates/sheets/item/tabs/effects.hbs

33 lines
1.3 KiB
Handlebars
Raw Normal View History

2021-06-26 22:02:00 +02:00
{{!--
SPDX-FileCopyrightText: 2021 Johannes Loher
SPDX-FileCopyrightText: 2021 Gesina Schwalbe
SPDX-License-Identifier: MIT
--}}
{{!-- Tab for the items view to manage effects --}}
<div class="tab effects" data-group="primary" data-tab="effects">
<ol class="effects-list">
<li class="effect flexrow effect-header">
<div class="effect-image"></div>
<div class="effect-name">Name</div>
<div class="effect-controls">
2021-07-20 02:16:43 +02:00
<a class="effect-control" data-action="create" title="{{localize 'DS4.UserInteractionAddEffectTitle'}}">
<i class="fas fa-plus"></i> {{localize 'DS4.UserInteractionAdd'}}</a>
</div>
</li>
{{#each item.effects as |effect id|}}
2021-06-30 14:24:23 +02:00
<li class="effect flexrow" data-effect-id="{{effect.id}}">
<h4 class="effect-name">{{effect.data.label}}</h4>
<div class="effect-controls">
2021-07-20 02:16:43 +02:00
<a class="effect-control" data-action="edit" title="{{localize 'DS4.UserInteractionEditEffectTitle'}}">
2021-01-24 17:40:08 +01:00
<i class="fas fa-edit"></i></a>
2021-07-20 02:16:43 +02:00
<a class="effect-control" data-action="delete"
title="{{localize 'DS4.UserInteractionDeleteEffectTitle'}}">
2021-01-24 17:40:08 +01:00
<i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ol>
</div>