mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-15 21:21:08 +01:00
Initial commit
This commit is contained in:
commit
aa4021d1a2
163 changed files with 26530 additions and 0 deletions
64
templates/views/action.hbs
Normal file
64
templates/views/action.hbs
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
<div>
|
||||
<header>
|
||||
{{formField fields.name value=source.name label="Name" rootId=partId}}
|
||||
<nav class="sheet-tabs tabs">
|
||||
{{#each tabs as |tab|}}
|
||||
<a class="{{tab.cssClass}}" data-action="tab" data-group="{{tab.group}}" data-tab="{{tab.id}}">
|
||||
<i class="{{tab.icon}}"></i>
|
||||
<label>{{localize tab.label}}</label>
|
||||
</a>
|
||||
{{/each}}
|
||||
</nav>
|
||||
</header>
|
||||
<section>
|
||||
<div class="tab {{this.tabs.effects.cssClass}}" data-group="primary" data-tab="effects">
|
||||
<fieldset class="action-category">
|
||||
<legend class="action-category-label" data-action="toggleSection" data-section="damage">
|
||||
<div>Damage</div>
|
||||
<i class="fa-solid {{#if (eq openSection 'damage')}}fa-angle-up{{else}}fa-angle-down{{/if}}"></i>
|
||||
</legend>
|
||||
|
||||
<div class="action-category-data {{#if (eq openSection 'damage')}}open{{/if}}">
|
||||
{{formField fields.damage.fields.type value=source.damage.type label="Damage Type" rootId=partId localize=true}}
|
||||
{{formField fields.damage.fields.value value=source.damage.value label="Damage" rootId=partId localize=true}}
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="action-category">
|
||||
<legend class="action-category-label" data-action="toggleSection" data-section="healing">
|
||||
<div>Healing</div>
|
||||
<i class="fa-solid {{#if (eq openSection 'healing')}}fa-angle-up{{else}}fa-angle-down{{/if}}"></i>
|
||||
</legend>
|
||||
|
||||
<div class="action-category-data {{#if (eq openSection 'healing')}}open{{/if}}">
|
||||
{{formField fields.healing.fields.type value=source.healing.type label="Healing Type" rootId=partId localize=true}}
|
||||
{{formField fields.healing.fields.value value=source.healing.value label="Healing" rootId=partId localize=true}}
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div class="tab {{this.tabs.useage.cssClass}}" data-group="primary" data-tab="useage">
|
||||
<fieldset class="action-category">
|
||||
<legend class="action-category-label" data-action="toggleSection" data-section="cost">
|
||||
<div>Cost</div>
|
||||
<i class="fa-solid {{#if (eq openSection 'cost')}}fa-angle-up{{else}}fa-angle-down{{/if}}"></i>
|
||||
</legend>
|
||||
|
||||
<div class="action-category-data {{#if (eq openSection 'cost')}}open{{/if}}">
|
||||
{{formField fields.cost.fields.type value=source.cost.type label="Cost Type" rootId=partId}}
|
||||
{{formField fields.cost.fields.value value=source.cost.value label="Value" rootId=partId}}
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
{{formField fields.target.fields.type value=source.target.type label="Target Type" rootId=partId}}
|
||||
</div>
|
||||
<div class="tab {{this.tabs.conditions.cssClass}}" data-group="primary" data-tab="conditions">
|
||||
{{!-- <h2>
|
||||
{{localize "Conditions"}}
|
||||
<select class="effect-select">
|
||||
{{selectOptions this.config.effectTypes selected=this.selectedEffectType labelAttr="name" localize=true blank=""}}
|
||||
</select>
|
||||
<i class="fa-solid fa-plus icon-button {{#if (not this.selectedEffectType)}}disabled{{/if}}" data-action="addCondition"></i>
|
||||
</h2> --}}
|
||||
</div>
|
||||
</section>
|
||||
<button type="submit">Save</button>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue