Merged with main

This commit is contained in:
WBHarry 2025-05-27 20:07:03 +02:00
commit 1bb23f1323
24 changed files with 208 additions and 210 deletions

View file

@ -27,17 +27,6 @@
<input class="domain-input" value="{{domains}}" />
</div>
</div>
<div class="form-group">
<label>{{localize "DAGGERHEART.Sheets.Class.DamageThresholds.Title"}}</label>
<div class="form-fields">
<label>{{localize "DAGGERHEART.Sheets.Class.DamageThresholds.Minor"}}</label>
<input name="system.damageThresholds.minor" value="{{source.system.damageThresholds.minor}}" placeholder="Minor" type="text" data-dtype="Number" />
<label>{{localize "DAGGERHEART.Sheets.Class.DamageThresholds.Major"}}</label>
<input name="system.damageThresholds.major" value="{{source.system.damageThresholds.major}}" placeholder="Major" type="text" data-dtype="Number" />
<label>{{localize "DAGGERHEART.Sheets.Class.DamageThresholds.Severe"}}</label>
<input name="system.damageThresholds.severe" value="{{source.system.damageThresholds.severe}}" placeholder="Severe" type="text" data-dtype="Number" />
</div>
</div>
{{formField systemFields.evasion value=source.system.evasion label=(localize "DAGGERHEART.Sheets.Class.Evasion")}}
{{!-- <div class="form-group">
<label>{{localize "DAGGERHEART.Sheets.Class.Evasion"}}</label>

View file

@ -1,36 +0,0 @@
<div>
<header class="flexcol">
<div class="title-container">
<img class="flex0" src="{{document.img}}" data-edit="img" data-action="onEditImage" title="{{document.name}}" height="64" width="64"/>
<div class="title-name">
{{formInput fields.name value=source.name rootId=partId}}
</div>
</div>
</header>
<section class="sheet-body">
<div class="flexrow item-container">
<div class="item-sidebar">
{{formField systemFields.quantity value=source.system.quantity label=(localize "DAGGERHEART.Sheets.Consumable.Quantity") }}
{{formField systemFields.consumeOnUse value=source.system.consumeOnUse label=(localize "DAGGERHEART.Sheets.Consumable.ConsumeOnUse")}}
{{!-- <div class="form-group">
<label>{{localize "DAGGERHEART.Sheets.Consumable.Quantity"}}</label>
<div class="form-fields">
<input type="text" name="system.quantity" value="{{item.system.quantity}}" data-dtype="Number" />
</div>
</div> --}}
{{!-- <div class="form-group flexrow">
<label>{{localize "DAGGERHEART.Sheets.Consumable.ConsumeOnUse"}}</label>
<div class="form-fields flex0">
<input type="checkbox" name="system.consumeOnUse" {{checked item.system.consumeOnUse}} />
</div>
</div> --}}
</div>
<div>
<h2 class="flex-col-centered">{{localize "DAGGERHEART.General.Description"}}</h2>
{{formInput systemFields.description value=source.system.description enriched=source.system.description localize=true toggled=true}}
{{!-- {{editor item.system.description target="system.description" button=true}} --}}
</div>
</div>
</section>
</div>

View file

@ -0,0 +1,10 @@
<header class='item-sheet-header'>
<img class='profile' src='{{source.img}}' data-action='editImage' data-edit='img' />
<div class='item-info'>
<line-div></line-div>
<h1 class='item-name'><input type='text' name='name' value='{{source.name}}' /></h1>
<div class='item-description'>
<h3>{{localize 'TYPES.Item.consumable'}}</h3>
</div>
</div>
</header>

View file

@ -0,0 +1,14 @@
<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.Consumable.Quantity"}}</span>
{{formField systemFields.quantity value=source.system.quantity}}
<span>{{localize "DAGGERHEART.Sheets.Consumable.ConsumeOnUse"}}</span>
{{formField systemFields.consumeOnUse value=source.system.consumeOnUse}}
</fieldset>
</section>

View file

@ -0,0 +1,10 @@
<header class='item-sheet-header'>
<img class='profile' src='{{source.img}}' data-action='editImage' data-edit='img' />
<div class='item-info'>
<line-div></line-div>
<h1 class='item-name'><input type='text' name='name' value='{{source.name}}' /></h1>
<div class='item-description'>
<h3>{{localize 'TYPES.Item.miscellaneous'}}</h3>
</div>
</div>
</header>

View file

@ -0,0 +1,11 @@
<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.Miscellaneous.Quantity"}}</span>
{{formField systemFields.quantity value=source.system.quantity}}
</fieldset>
</section>

View file

@ -1,29 +0,0 @@
<div>
<header class="flexcol">
<div class="title-container">
<img class="flex0" src="{{source.img}}" data-edit="img" data-action="onEditImage" title="{{source.name}}" height="64" width="64"/>
<div class="title-name">
{{formInput fields.name value=source.name rootId=partId}}
</div>
</div>
</header>
<section class="sheet-body">
<div class="flexrow item-container">
<div class="item-sidebar">
{{formField systemFields.quantity value=source.system.quantity label=(localize "DAGGERHEART.Sheets.Miscellaneous.Quantity")}}
{{!-- <div class="form-group">
<label>{{localize "DAGGERHEART.Sheets.Miscellaneous.Quantity"}}</label>
<div class="form-fields">
<input type="text" name="system.quantity" value="{{item.system.quantity}}" data-dtype="Number" />
</div>
</div> --}}
</div>
<div>
<h2 class="flex-col-centered">{{localize "DAGGERHEART.General.Description"}}</h2>
{{formInput systemFields.description value=source.system.description enriched=source.system.description localize=true toggled=true}}
{{!-- {{editor item.system.description target="system.description" button=true}} --}}
</div>
</div>
</section>
</div>

View file

@ -1,8 +1,11 @@
<div class="domain-card-body">
<nav class="pc-tabs loadout-tabs tabs" data-group="secondary">
<a class="item" data-tab="foundation" data-action="tabSwitch">{{localize "DAGGERHEART.Sheets.PC.Tabs.Foundation"}}</a>
<a class="item" data-tab="loadout" data-action="tabSwitch">{{localize "DAGGERHEART.Sheets.PC.Tabs.Loadout"}}</a>
<a class="item" data-tab="vault">{{localize "DAGGERHEART.Sheets.PC.Tabs.Vault"}}</a>
<nav class="sheet-tabs tabs">
{{#each tabs.secondary as |tab|}}
<a class="item {{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>
<section class="loadout-body flexcol">
<div class="tab" data-group="secondary" data-tab="foundation">