Properties from pack
Editable functionalities (hide icons) Merge of edit/add/delete items hooks
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
<tr class="flexrow row advancement" data-advancement-id="{{advancement._id}}">
|
||||
<tr class="flexrow row advancement">
|
||||
<td class="name" name="advancement.name">{{#if advancement.data.in_curriculum}}<i class="fas fa-graduation-cap"></i> {{/if}}{{ advancement.name }}</td>
|
||||
<td class="xp" name="advancement.xp">{{ advancement.data.xp_used }}</td>
|
||||
<td class="rank" name="advancement.rank">{{ advancement.data.rank }}</td>
|
||||
{{#if editable}}
|
||||
<td class="actions">
|
||||
<ul>
|
||||
<li class="item-control advancement-curriculum" title="{{localize 'l5r5e.global.curriculum'}}"><i class="fas fa-graduation-cap"></i></li>
|
||||
<li class="item-control advancement-edit" title="{{localize 'l5r5e.global.edit'}}"><i class="fas fa-edit"></i></li>
|
||||
<li class="item-control advancement-delete" title="{{localize 'l5r5e.global.delete'}}"><i class="fas fa-trash"></i></li>
|
||||
<li data-item-id="{{advancement._id}}" class="item-control item-curriculum" title="{{localize 'l5r5e.global.curriculum'}}"><i class="fas fa-graduation-cap"></i></li>
|
||||
<li data-item-id="{{advancement._id}}" class="item-control item-edit" title="{{localize 'l5r5e.global.edit'}}"><i class="fas fa-edit"></i></li>
|
||||
<li data-item-id="{{advancement._id}}" class="item-control item-delete" title="{{localize 'l5r5e.global.delete'}}"><i class="fas fa-trash"></i></li>
|
||||
</ul>
|
||||
</td>
|
||||
{{/if}}
|
||||
</tr>
|
||||
@@ -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>
|
||||
|
||||
@@ -13,7 +13,12 @@
|
||||
</li>
|
||||
<li>
|
||||
<fieldset>
|
||||
<legend class="text-block-header">{{ localize 'l5r5e.social.advantages' }}</legend>
|
||||
<legend class="text-block-header">
|
||||
{{ localize 'l5r5e.social.advantages' }}
|
||||
{{#if editable}}
|
||||
<a data-item-type="peculiarity" class="peculiarity-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 '["distinction","passion"]' 'includes' item.data.peculiarity_type}}
|
||||
@@ -25,7 +30,12 @@
|
||||
</li>
|
||||
<li>
|
||||
<fieldset>
|
||||
<legend class="text-block-header">{{ localize 'l5r5e.social.disadvantages' }}</legend>
|
||||
<legend class="text-block-header">
|
||||
{{ localize 'l5r5e.social.disadvantages' }}
|
||||
{{#if editable}}
|
||||
<a data-item-type="peculiarity" class="peculiarity-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 '["adversity","anxiety"]' 'includes' item.data.peculiarity_type}}
|
||||
|
||||
@@ -13,7 +13,9 @@
|
||||
<fieldset class="section-header flexrow">
|
||||
<legend class="technique-controls">
|
||||
{{ localize 'l5r5e.techniques.title' }}
|
||||
<a class="technique-control technique-add" title="{{ localize 'l5r5e.global.add' }}"><i class="fas fa-plus"></i></a>
|
||||
{{#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|}}
|
||||
|
||||
Reference in New Issue
Block a user