Properties from pack

Editable functionalities (hide icons)
Merge of edit/add/delete items hooks
This commit is contained in:
Vlyan
2020-12-24 15:51:52 +01:00
parent 3c79556152
commit 0f1afcf740
24 changed files with 230 additions and 82 deletions

View File

@@ -19,20 +19,22 @@
</label>
</fieldset>
<fieldset class="advancement">
<legend class="tools">{{ localize 'l5r5e.advancements.title'}} <a class="advancement-control advancement-add" title="{{ localize 'l5r5e.global.add'}}"><i class="fas fa-plus"></i></a></legend>
<legend class="tools">{{ localize 'l5r5e.advancements.title'}} <a data-item-type="advancement" class="advancement-control item-add" title="{{ localize 'l5r5e.global.add'}}"><i class="fas fa-plus"></i></a></legend>
<table>
<thead class="flex">
<tr class="flexrow row">
<th class="name">{{ localize 'l5r5e.name' }}</th>
<th class="xp">{{ localize 'l5r5e.advancements.spent' }}</th>
<th class="rank">{{ localize 'l5r5e.rank' }}</th>
{{#if editable}}
<th class="actions"></th>
{{/if}}
</tr>
</thead>
<tbody class="flex">
{{#each actor.items as |advancement advancementId|}}
{{#ifCond '["peculiarity", "technique","advancement"]' 'includes' advancement.type}}
{{> 'systems/l5r5e/templates/actors/character/advancement.html' advancement=advancement }}
{{> 'systems/l5r5e/templates/actors/character/advancement.html' advancement=advancement editable=../editable }}
{{/ifCond}}
{{/each}}
</tbody>