mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-04-21 23:13:39 +02:00
Some checks are pending
Project CI / build (24.x) (push) Waiting to run
* Functioning setup * . * Fixes * Completed * Apply suggestions from code review Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com> * using function.call instead of function.bind * Run lint fix on action areas PR (#1820) * . * . * Restructured getTemplateShape to be a lot more readable * . * . * Changed from 'area' to 'areas' * . * Moved the areas button to the left * Fix regression with actions list * Updated all SRD adversaries --------- Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com> Co-authored-by: Carlos Fernandez <cfern1990@gmail.com>
46 lines
No EOL
2.5 KiB
Handlebars
46 lines
No EOL
2.5 KiB
Handlebars
<fieldset class="one-column" data-key="areas">
|
|
<legend>
|
|
{{localize "DAGGERHEART.ACTIONS.Config.area.sectionTitle"}}
|
|
<a><i class="fa-solid fa-plus icon-button" data-action="addElement"></i></a>
|
|
</legend>
|
|
|
|
{{#each source as |area index|}}
|
|
{{#unless @first}}<line-div></line-div>{{/unless}}
|
|
<div class="nest-inputs">
|
|
{{formField ../fields.name value=area.name name=(concat "areas." index ".name") localize=true}}
|
|
<a class="btn" data-tooltip="{{localize "CONTROLS.CommonDelete"}}" data-action="removeElement" data-index="{{index}}"><i class="fas fa-trash"></i></a>
|
|
</div>
|
|
<div class="nest-inputs">
|
|
{{formField ../fields.type value=area.type name=(concat "areas." index ".type") localize=true}}
|
|
{{formField ../fields.shape value=area.shape name=(concat "areas." index ".shape") localize=true}}
|
|
{{formField ../fields.size value=area.size name=(concat "areas." index ".size") localize=true}}
|
|
</div>
|
|
|
|
<div class="sub-section-header">
|
|
<span>{{localize "DAGGERHEART.GENERAL.Effect.plural"}}</span>
|
|
<a><i class="fa-solid fa-plus icon-button" data-action="addEffect" data-area-index="{{index}}"></i></a>
|
|
</div>
|
|
<div class="two-columns even" style="width: 100%;">
|
|
{{#each area.effects as |effectId index|}}
|
|
<input type="hidden" name={{concat "areas." @../key ".effects." index}} value="{{effectId}}">
|
|
|
|
<div class="inventory-item single-img bordered" data-effect-id="{{effectId}}" data-area-index="{{index}}" data-action="editEffect">
|
|
<div class="inventory-item-header">
|
|
{{#with (@root.getEffectDetails effectId) 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}}
|
|
<div class="controls">
|
|
<a data-tooltip="{{localize "CONTROLS.CommonDelete"}}" data-action="removeEffect" data-area-index="{{@../key}}" data-index="{{index}}"><i class="fas fa-trash"></i></a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{/each}}
|
|
</div>
|
|
{{/each}}
|
|
|
|
</fieldset> |