daggerheart/templates/sheets/parts/hope.hbs
2025-05-22 16:53:39 +02:00

15 lines
No EOL
829 B
Handlebars

<fieldset class="left-main-container">
<legend class="legend">{{localize "DAGGERHEART.Sheets.PC.Hope.Title"}}</legend>
<div class="flex-spaced">
<span class="hope-text">{{localize "DAGGERHEART.Sheets.PC.Hope.Description"}}</span>
<div class="hope-container">
{{#times 6}}
<span class="hope-inner-container">
<input class="hope-value" type="checkbox" data-action="toggleHope" data-value="{{this}}" {{ checked (gte ../document.system.resources.hope.value this) }} {{#if (gte this ../document.system.resources.hope.max)}}disabled{{/if}} />
{{#if (gte this ../document.system.resources.hope.max)}}<i class="fa-solid fa-droplet-slash hope-scar"></i>{{/if}}
</span>
{{/times}}
</div>
</div>
</fieldset>