Corrected ActiveEffect template styling and added useage of the new 'showIcon' property

This commit is contained in:
WBHarry 2026-02-04 10:15:42 +01:00
parent ac998adaa6
commit 115a31423e
9 changed files with 44 additions and 12 deletions

View file

@ -1,6 +1,6 @@
<li data-index="{{index}}">
<div class="key">
{{formInput fields.key name=change.keyPath value=change.key}}
<input type="text" class="effect-change-input" name="{{change.keyPath}}" value="{{change.key}}" />
</div>
<div class="type">
{{formInput fields.type name=change.typePath value=change.type localize=true}}
@ -12,6 +12,6 @@
{{formInput fields.priority name=change.priorityPath value=change.priority placeholder=defaultPriority}}
</div>
<div class="controls">
<button type="button" class="inline-control icon fa-solid fa-trash" data-action="deleteChange"></button>
<a class="inline-control icon" data-action="deleteChange"><i class="fa-solid fa-trash"></i></a>
</div>
</li>

View file

@ -5,7 +5,7 @@
<div class="value">{{localize "EFFECT.FIELDS.changes.element.value.label"}}</div>
<div class="priority">{{localize "EFFECT.FIELDS.changes.element.priority.label"}}</div>
<div class="controls">
<button type="button" class="inline-control icon fa-regular fa-square-plus" data-action="addChange"></button>
<a class="inline-control icon" data-action="addChange"><i class="fa-regular fa-square-plus"></i></a>
</div>
</header>
<ol class="scrollable" data-changes>

View file

@ -4,7 +4,12 @@
{{formGroup fields.disabled value=source.disabled rootId=rootId}}
{{#if isActorEffect}}
{{formGroup fields.origin value=source.origin rootId=rootId disabled=true}}
<div class="form-group">
<label>{{localize "EFFECT.FIELDS.origin.label"}}</label>
<div class="form-fields">
<input type="text" value="{{source.origin}}" disabled />
</div>
</div>
{{/if}}
{{#if isItemEffect}}