Files
fvtt-celestopol/templates/character-blessures.hbs

66 lines
2.5 KiB
Handlebars

<div class="tab blessures {{tab.cssClass}}" data-group="sheet" data-tab="blessures">
{{!-- Blessures --}}
<section class="track-section">
<div class="track-header">
<span class="track-title">
{{localize "CELESTOPOL.Track.blessures"}}
<span class="track-help" title="{{localize 'CELESTOPOL.Track.blessuresTooltip'}}">?</span>
</span>
<span class="wound-malus">{{localize "CELESTOPOL.Track.currentMalus"}} :
<strong>{{lookup @root.woundLevels system.blessures.lvl 'malus'}}</strong>
</span>
</div>
<div class="track-boxes">
{{#each (range 8) as |lvl|}}
<div class="track-box {{#if (lte lvl ../system.blessures.lvl)}}filled{{/if}}"
{{#if ../isEditable}}data-action="trackBox" data-path="system.blessures.lvl" data-index="{{lvl}}"{{/if}}>
<span class="box-label">{{lookup @root.woundLevels lvl 'malus'}}</span>
</div>
{{/each}}
</div>
<div class="track-level">
<label>{{localize "CELESTOPOL.Track.level"}}</label>
<span>{{system.blessures.lvl}}</span>
</div>
</section>
{{!-- Destin --}}
<section class="track-section">
<div class="track-header">
<span class="track-title">{{localize "CELESTOPOL.Track.destin"}}
<span class="track-help" title="{{localize 'CELESTOPOL.Track.destinTooltip'}}">?</span>
</span>
</div>
<div class="track-boxes destin-boxes">
{{#each (range 8) as |lvl|}}
<div class="track-box destiny {{#if (lte lvl ../system.destin.lvl)}}filled{{/if}}"
{{#if ../isEditable}}data-action="trackBox" data-path="system.destin.lvl" data-index="{{lvl}}"{{/if}}></div>
{{/each}}
</div>
<div class="track-level">
<label>{{localize "CELESTOPOL.Track.level"}}</label>
<span>{{system.destin.lvl}}</span>
</div>
</section>
{{!-- Spleen --}}
<section class="track-section">
<div class="track-header">
<span class="track-title">
{{localize "CELESTOPOL.Track.spleen"}}
<span class="track-help" title="{{localize 'CELESTOPOL.Track.spleenTooltip'}}">?</span>
</span>
</div>
<div class="track-boxes spleen-boxes">
{{#each (range 8) as |lvl|}}
<div class="track-box spleen {{#if (lte lvl ../system.spleen.lvl)}}filled{{/if}}"
{{#if ../isEditable}}data-action="trackBox" data-path="system.spleen.lvl" data-index="{{lvl}}"{{/if}}></div>
{{/each}}
</div>
<div class="track-level">
<label>{{localize "CELESTOPOL.Track.level"}}</label>
<span>{{system.spleen.lvl}}</span>
</div>
</section>
</div>