some factorisation
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<td class="xp" name="advancement.xp">{{ advancement.data.xp_used }}</td>
|
||||
<td class="rank" name="advancement.rank">{{ advancement.data.rank }}</td>
|
||||
<td class="actions">
|
||||
<li class="item-control advancement-edit" title="Edit advancement"><i class="fas fa-edit"></i></li>
|
||||
<li class="item-control advancement-delete" title="Delete advancement"><i class="fas fa-trash"></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>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -1,5 +1,5 @@
|
||||
<li class="skill-category-wrapper skill-category-content">
|
||||
<h4 class="section-header">{{ localizeSkillCategory categoryId }}</h4>
|
||||
<h4 class="section-header">{{ localizeSkill categoryId 'title' }}</h4>
|
||||
<ul class="skill-category-skills-list">
|
||||
{{#each category as |skill id| }}
|
||||
{{> 'systems/l5r5e/templates/sheets/actor/skill.html' categoryId=../categoryId skill=skill skillId=id }}
|
||||
|
||||
@@ -13,8 +13,8 @@
|
||||
<input type="text" name="data.xp_saved" value="{{ data.xp_saved }}" data-dtype="Number" placeholder="0"/>
|
||||
</label>
|
||||
</fieldset>
|
||||
<fieldset class="acquisitions">
|
||||
<legend class="tools">{{ localize 'l5r5e.xp.acquisitions'}} <a class="acquisition-control acquisition-add" title="{{ localize 'l5r5e.add'}}"><i class="fas fa-plus"></i></a></legend>
|
||||
<fieldset class="advancement">
|
||||
<legend class="tools">{{ localize 'l5r5e.xp.advancements'}} <a class="advancement-control advancement-add" title="{{ localize 'l5r5e.global.add'}}"><i class="fas fa-plus"></i></a></legend>
|
||||
<table>
|
||||
<thead class="flex">
|
||||
<tr class="flexrow row">
|
||||
@@ -26,9 +26,9 @@
|
||||
</thead>
|
||||
<tbody class="flex">
|
||||
{{#each actor.items as |advancement advancementId|}}
|
||||
{{#if advancement.isAdvancement }}
|
||||
{{#ifCond (ifCond advancement.type '==' 'technique') '||' (ifCond advancement.type '==' 'advancement')}}
|
||||
{{> 'systems/l5r5e/templates/sheets/actor/advancement.html' advancement=advancement }}
|
||||
{{/if}}
|
||||
{{/ifCond}}
|
||||
{{/each}}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@@ -16,9 +16,9 @@
|
||||
<legend class="text-block-header">{{ localize 'l5r5e.social.advantages' }}</legend>
|
||||
<ul class="item-list">
|
||||
{{#each actor.item as |item id|}}
|
||||
{{#if item.isEquipment }}
|
||||
{{#ifCond item.type '==' 'advantage'}}
|
||||
{{> 'systems/l5r5e/templates/item/item-entry.html' item=item id=id }}
|
||||
{{/if}}
|
||||
{{/ifCond}}
|
||||
{{/each}}
|
||||
</ul>
|
||||
</fieldset>
|
||||
@@ -28,9 +28,9 @@
|
||||
<legend class="text-block-header">{{ localize 'l5r5e.social.disadvantages' }}</legend>
|
||||
<ul class="item-list">
|
||||
{{#each actor.item as |item id|}}
|
||||
{{#if item.isEquipment }}
|
||||
{{#ifCond item.type '==' 'disadvantage'}}
|
||||
{{> 'systems/l5r5e/templates/item/item-entry.html' item=item id=id }}
|
||||
{{/if}}
|
||||
{{/ifCond}}
|
||||
{{/each}}
|
||||
</ul>
|
||||
</fieldset>
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
<fieldset class="section-header flexrow">
|
||||
<legend class="technique-controls">
|
||||
{{ localize 'l5r5e.techniques.title' }}
|
||||
<a class="technique-control technique-add" title="{{ localize 'l5r5e.add' }}"><i class="fas fa-plus"></i></a>
|
||||
<a class="technique-control technique-add" title="{{ localize 'l5r5e.global.add' }}"><i class="fas fa-plus"></i></a>
|
||||
</legend>
|
||||
<ul class="item-list">
|
||||
{{#each actor.items as |item id|}}
|
||||
{{#if item.isTechnique }}
|
||||
{{#ifCond item.type '==' 'technique'}}
|
||||
{{> 'systems/l5r5e/templates/item/technique-entry.html' technique=item }}
|
||||
{{/if}}
|
||||
{{/ifCond}}
|
||||
{{/each}}
|
||||
</ul>
|
||||
</fieldset>
|
||||
|
||||
Reference in New Issue
Block a user