fvtt-cthulhu-eternal/templates/path-talents.hbs

28 lines
1.4 KiB
Handlebars

<section class="tab path-{{tab.id}} {{tab.cssClass}}" data-tab="{{tab.id}}" data-group="{{tab.group}}">
{{!log "path-talents" this}}
{{#each talents as |item|}}
{{!log "path-talent" this}}
<div class="talent" data-item-uuid="{{item.uuid}}">
<div class="header">
<div class="name">{{item.name}} {{#if item.system.canProgress}}<span data-tooltip="{{localize 'TENEBRIS.Label.progressionPossible'}}"> (P)</span>{{/if}}
{{#if item.system.isLearned}}
<span data-tooltip="{{localize 'TENEBRIS.Talent.FIELDS.appris.label'}}"> <i class="fa-solid fa-book"></i>({{item.system.niveau}})</span>
{{/if}}
</div>
{{#if @root.isEditMode}}
<div class="controls">
<a data-tooltip="{{localize 'TENEBRIS.Edit'}}" data-action="edit" data-item-uuid="{{item.uuid}}"><i class="fas fa-edit"></i></a>
<a data-tooltip="{{localize 'TENEBRIS.Delete'}}" data-action="delete" data-item-uuid="{{item.uuid}}"><i class="fas fa-trash"></i></a>
</div>
{{/if}}
</div>
{{#if item.system.isLearned}}
<div class="progression">
<div>{{localize "TENEBRIS.Label.appris"}}</div>
<div>{{localize "TENEBRIS.Label.niveau"}} {{item.system.niveau}}</div>
</div>
{{/if}}
<div class="description">{{{item.system.improvedDescription}}}</div>
</div>
{{/each}}
</section>