Split techniques in actor sheet for better readability

This commit is contained in:
Vlyan
2021-02-09 12:16:15 +01:00
parent 0cb0a2f3ea
commit 8a22706ad2
5 changed files with 85 additions and 27 deletions

View File

@@ -8,19 +8,19 @@
</label>
{{/each}}
</div>
<fieldset class="section-header flexrow">
<legend class="technique-controls">
{{ localize 'l5r5e.techniques.title' }}
{{#if editable}}
<a data-item-type="technique" class="technique-control item-add" title="{{ localize 'l5r5e.global.add' }}"><i class="fas fa-plus"></i></a>
{{/if}}
</legend>
<ul class="item-list">
{{#each actor.items as |item id|}}
{{#ifCond item.type '==' 'technique'}}
{{> 'systems/l5r5e/templates/items/technique/technique-entry.html' technique=item editable=../editable }}
{{#each actor.data.splitTechniquesList as |list technique|}}
<fieldset class="section-header flexrow">
<legend class="technique-controls">
{{localize (localize 'l5r5e.techniques.{technique}' technique=technique) }}
{{#ifCond ../editable '&&' (lookup ../actor.data.techniques technique)}}
<a data-item-type="technique" class="technique-control item-add" data-tech-type="{{technique}}" title="{{ localize 'l5r5e.global.add' }}"><i class="fas fa-plus"></i></a>
{{/ifCond}}
{{/each}}
</ul>
</fieldset>
</legend>
<ul class="item-list">
{{#each list as |item id|}}
{{> 'systems/l5r5e/templates/items/technique/technique-entry.html' technique=item editable=../../editable }}
{{/each}}
</ul>
</fieldset>
{{/each}}
</div>