mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 07:59:03 +01:00
fixes
This commit is contained in:
parent
549140d861
commit
f1d0881951
9 changed files with 98 additions and 48 deletions
|
|
@ -5,7 +5,7 @@
|
|||
<ul class="actions-list">
|
||||
{{#each types}}
|
||||
<li class="action-item">
|
||||
<label class="label" for="{{id}}">
|
||||
<label class="label" for="{{id}}" data-tooltip="{{localize tooltip}}" data-tooltip-direction="LEFT">
|
||||
<i class="fa-solid {{icon}} fa-xl"></i>
|
||||
<span class="label">{{localize name}}</span>
|
||||
</label>
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
<a><i class="fa-solid fa-plus icon-button" data-action="addEffect"></i></a>
|
||||
</legend>
|
||||
<ul class="items-list">
|
||||
{{#each source as | effect index |}}
|
||||
{{!-- {{#each source as | effect index |}}
|
||||
<div class="inventory-item" data-effect-id="{{effect._id}}" data-action="editEffect">
|
||||
{{#with (@root.getEffectDetails effect._id) as | details |}}
|
||||
<img class="item-img" src="{{img}}">
|
||||
|
|
@ -18,6 +18,25 @@
|
|||
<a data-tooltip="{{localize "CONTROLS.CommonDelete"}}" data-action="removeEffect" data-index="{{index}}"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
{{/each}} --}}
|
||||
{{#each source as | effect index |}}
|
||||
<div class="inventory-item single-img" data-effect-id="{{effect._id}}" data-action="editEffect">
|
||||
<div class="inventory-item-header">
|
||||
{{#with (@root.getEffectDetails effect._id) as | details |}}
|
||||
<div class="img-portait">
|
||||
<img class="item-img" src="{{img}}">
|
||||
</div>
|
||||
<div class="item-label">
|
||||
<div class="item-name">{{name}}</div>
|
||||
</div>
|
||||
{{/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=(localize "DAGGERHEART.UI.Tooltip.appliedEvenIfSuccessful") tooltipDirection="UP")}}{{/if}}
|
||||
<div class="controls">
|
||||
<a data-tooltip="{{localize "CONTROLS.CommonDelete"}}" data-action="removeEffect" data-index="{{index}}"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</fieldset>
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
<header class="dialog-header">
|
||||
<h1>{{itemName}}</h1>
|
||||
</header>
|
||||
<ul class="actions-list">
|
||||
<ul class="action-buttons-list">
|
||||
{{#each actions}}
|
||||
<li class="action-item">
|
||||
<button type="button" class="list-button" data-action-id="{{id}}" data-action="choose">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue