mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-04-21 23:13:39 +02:00
Stuff
This commit is contained in:
parent
1fea8438ba
commit
7af3f07a26
14 changed files with 260 additions and 16 deletions
26
templates/dialogs/levelupOptionsDialog/parts/tier.hbs
Normal file
26
templates/dialogs/levelupOptionsDialog/parts/tier.hbs
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<section class="tab scrollable {{tab.cssClass}} {{tab.id}}" data-group="{{tab.group}}" data-tab="{{tab.id}}">
|
||||
<div class="tier-tools">
|
||||
<select class="option-type-select">
|
||||
{{selectOptions optionTypes selected=selectedOption blank=""}}
|
||||
</select>
|
||||
<button data-action="addTierOption" data-tier="{{tab.tier}}" {{#unless selectedOption}}disabled{{/unless}}>{{localize "Add Levelup Option"}}</button>
|
||||
</div>
|
||||
{{#with (lookup item.system.levelupOptionTiers tab.tier)}}
|
||||
{{#unless (empty this)}}
|
||||
{{#each this as |option key|}}
|
||||
<fieldset>
|
||||
<legend><a data-action="removeTierOption" data-tier="{{../../tab.tier}}" data-key="{{key}}"><i class="fa-solid fa-trash"></i></a></legend>
|
||||
|
||||
<div class="tier-container">
|
||||
{{formGroup @root.fields.label value=option.label name=(concat "system.levelOptionTiers." ../../tab.tier "." key ".label") localize=true }}
|
||||
{{formGroup @root.fields.type value=option.type name=(concat "system.levelOptionTiers." ../../tab.tier "." key ".type") localize=true }}
|
||||
<div class="two-columns even">
|
||||
{{formGroup @root.fields.checkboxSelections value=option.checkboxSelections name=(concat "system.levelOptionTiers." ../../tab.tier "." key ".checkboxSelections") localize=true }}
|
||||
{{formGroup @root.fields.minCost value=option.minCost name=(concat "system.levelOptionTiers." ../../tab.tier "." key ".minCost") localize=true }}
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
{{/each}}
|
||||
{{/unless}}
|
||||
{{/with}}
|
||||
</section>
|
||||
Loading…
Add table
Add a link
Reference in a new issue