mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 11:41:08 +01:00
enhance card items (#75)
This commit is contained in:
parent
917bcd7056
commit
c34c923406
33 changed files with 727 additions and 534 deletions
9
templates/sheets/items/ancestry/header.hbs
Normal file
9
templates/sheets/items/ancestry/header.hbs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<header class='item-card-header'>
|
||||
<img class='profile' src='{{source.img}}' data-action='editImage' data-edit='img' />
|
||||
<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.ancestry'}}</h3>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
9
templates/sheets/items/community/header.hbs
Normal file
9
templates/sheets/items/community/header.hbs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<header class='item-card-header'>
|
||||
<img class='profile' src='{{source.img}}' data-action='editImage' data-edit='img' />
|
||||
<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.community'}}</h3>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
26
templates/sheets/items/domainCard/header.hbs
Normal file
26
templates/sheets/items/domainCard/header.hbs
Normal 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>
|
||||
20
templates/sheets/items/domainCard/settings.hbs
Normal file
20
templates/sheets/items/domainCard/settings.hbs
Normal 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>
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
<section
|
||||
class='tab {{tabs.actions.cssClass}} {{tabs.actions.id}}'
|
||||
data-tab='{{tabs.actions.id}}'
|
||||
data-group='{{tabs.actions.group}}'
|
||||
>
|
||||
<fieldset class="one-column">
|
||||
<legend>{{localize "Actions"}} <a><i class="fa-solid fa-plus icon-button" data-action="addAction"></i></a></legend>
|
||||
<div class="actions-list">
|
||||
{{#each document.system.actions as |action index|}}
|
||||
<div class="action-item">
|
||||
<img class="image" src="{{action.img}}" />
|
||||
<span>{{action.name}}</span>
|
||||
<div class="controls">
|
||||
<a data-action="editAction" data-index="{{index}}"><i class="fa-solid fa-pen-to-square"></i></a>
|
||||
<a data-action="removeAction" data-index="{{index}}"><i class="fa-solid fa-trash"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
</fieldset>
|
||||
</section>
|
||||
Loading…
Add table
Add a link
Reference in a new issue