mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-08 06:56:12 +01:00
19 lines
No EOL
1,017 B
Handlebars
19 lines
No EOL
1,017 B
Handlebars
<fieldset class="one-column" data-key="effects">
|
|
<legend>
|
|
Effects
|
|
<a><i class="fa-solid fa-plus icon-button" data-action="addEffect"></i></a>
|
|
</legend>
|
|
{{#each source as | effect index |}}
|
|
<div class="nest-inputs">
|
|
<fieldset class="flex list-w-img" data-effect-id="{{effect._id}}" data-action="editEffect">
|
|
{{#with (@root.getEffectDetails effect._id) as | details |}}
|
|
<img src="{{img}}">
|
|
<label>{{name}}</label>
|
|
{{/with}}
|
|
<input type="hidden" name="effects.{{index}}._id" value="{{effect._id}}">
|
|
{{#if @root.source.save.trait}}{{formInput ../fields.onSave value=effect.onSave name=(concat "effects." index ".onSave") dataset=(object tooltip="Applied even if save succeeded" tooltipDirection="UP")}}{{/if}}
|
|
</fieldset>
|
|
<div class="fas fa-trash" data-action="removeEffect" data-index="{{index}}"></div>
|
|
</div>
|
|
{{/each}}
|
|
</fieldset> |