enhance card items

This commit is contained in:
moliloo 2025-05-29 01:31:47 -03:00
parent b31d19a772
commit bd0a01ff47
33 changed files with 727 additions and 534 deletions

View file

@ -0,0 +1,26 @@
<header class='item-card-header'>
<img class='profile' src='{{source.img}}' data-action='editImage' data-edit='img' />
<div class="item-icons-list">
<span class="item-icon">
<span class="recall-label">{{localize "DAGGERHEART.Sheets.DomainCard.RecallCost"}}</span>
<span class="recall-value">{{source.system.recallCost}}</span>
<i class="fa-solid fa-bolt"></i>
</span>
</div>
<div class='item-info'>
<h1 class='item-name'><input type='text' name='name' value='{{source.name}}' /></h1>
<div class='item-description'>
<h3>{{localize 'TYPES.Item.domainCard'}}</h3>
<h3>
{{localize (concat 'DAGGERHEART.Domain.CardTypes.' source.system.type)}}
<span>-</span>
{{source.system.domain}}
<span>-</span>
<span>
{{localize "DAGGERHEART.Sheets.DomainCard.Level"}}:
{{source.system.level}}
</span>
</h3>
</div>
</div>
</header>

View file

@ -0,0 +1,20 @@
<section
class='tab {{tabs.settings.cssClass}} {{tabs.settings.id}}'
data-tab='{{tabs.settings.id}}'
data-group='{{tabs.settings.group}}'
>
<fieldset class="two-columns">
<legend>{{localize tabs.settings.label}}</legend>
<span>{{localize "DAGGERHEART.Sheets.DomainCard.Type"}}</span>
{{formField systemFields.type value=source.system.type localize=true blank=""}}
<span>{{localize "DAGGERHEART.Sheets.DomainCard.Foundation"}}</span>
{{formField systemFields.foundation value=source.system.foundation }}
<span>{{localize "DAGGERHEART.Sheets.DomainCard.Domain"}}</span>
{{formField systemFields.domain value=source.system.domain localize=true blank=""}}
<span>{{localize "DAGGERHEART.Sheets.DomainCard.Level"}}</span>
{{formField systemFields.level value=source.system.level data-dtype="Number"}}
<span>{{localize "DAGGERHEART.Sheets.DomainCard.RecallCost"}}</span>
{{formField systemFields.recallCost value=source.system.recallCost data-dtype="Number"}}
</fieldset>
</section>