Second round de modifications
This commit is contained in:
@@ -1,50 +1,4 @@
|
||||
<div class="techniques-wrapper">
|
||||
{{!-- technique types --}}
|
||||
<div class="checklist">
|
||||
<i>{{localize 'l5r5e.techniques.type'}}</i>
|
||||
{{#each data.techniquesList as |technique|}}
|
||||
{{#ifCond ../data.editable_not_soft_locked '||' (lookup ../data.system.techniques technique.id)}}
|
||||
<label>
|
||||
<input type="checkbox" name="system.techniques.{{technique.id}}" {{checked (lookup ../data.system.techniques technique.id)}} {{^if ../data.editable_not_soft_locked}}disabled{{/if}} />
|
||||
{{technique.label}}
|
||||
</label>
|
||||
{{/ifCond}}
|
||||
{{/each}}
|
||||
</div>
|
||||
{{!-- technique list --}}
|
||||
{{#each data.splitTechniquesList as |list technique|}}
|
||||
<fieldset class="section-header flexrow">
|
||||
<legend class="technique-controls">
|
||||
<span class="technique-controls toggle-on-click" data-toggle="toggle-technique-category-{{technique}}">
|
||||
{{localize (localize 'l5r5e.techniques.{technique}' technique=technique)}}
|
||||
</span>
|
||||
{{#ifCond ../data.editable_not_soft_locked '&&' (lookup ../data.system.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}}
|
||||
</legend>
|
||||
<ul class="item-list toggle-technique-category-{{technique}} {{#ifCond ../data.storeInfos 'includes' (concat 'toggle-technique-category-' technique)}}toggle-hidden{{/ifCond}}">
|
||||
{{#each list as |item id|}}
|
||||
{{> 'systems/l5rx-chiaroscuro/templates/items/technique/technique-entry.html' technique=item editable=../../data.editable_not_soft_locked}}
|
||||
{{/each}}
|
||||
</ul>
|
||||
</fieldset>
|
||||
{{/each}}
|
||||
{{!-- signature scroll list --}}
|
||||
<fieldset class="section-header flexrow">
|
||||
<legend class="text-block-header">
|
||||
{{localize 'l5r5e.advancements.signature_scroll' }}
|
||||
{{#if data.editable_not_soft_locked}}
|
||||
<a data-item-type="signature_scroll" class="signature-scroll-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 |scroll id|}}
|
||||
{{#ifCond scroll.type '==' 'signature_scroll'}}
|
||||
{{> 'systems/l5rx-chiaroscuro/templates/items/signature-scroll/signature-scroll-entry.html' scroll=scroll id=id editable=../data.editable_not_soft_locked}}
|
||||
{{/ifCond}}
|
||||
{{/each}}
|
||||
</ul>
|
||||
</fieldset>
|
||||
{{!-- Arcane items list --}}
|
||||
<fieldset class="section-header flexrow">
|
||||
<legend class="text-block-header">
|
||||
@@ -55,6 +9,29 @@
|
||||
</legend>
|
||||
<ul class="item-list">
|
||||
{{#each data.arcaneItems as |item|}}
|
||||
<li class="item technique flexcol" data-item-id="{{item._id}}">
|
||||
<ul class="item-header technique-controls">
|
||||
<li class="item-img"><img src="{{item.img}}" title="{{item.name}}" width="32px" height="32px"/></li>
|
||||
<li class="item-name dice-picker l5r5e-tooltip" data-item-id="{{item._id}}">{{item.name}}</li>
|
||||
{{#if ../data.editable_not_soft_locked}}
|
||||
<li data-item-id="{{item._id}}" class="item-control item-edit" title="{{localize 'l5r5e.global.edit'}}"><i class="fas fa-edit"></i></li>
|
||||
<li data-item-id="{{item._id}}" class="item-control item-delete" title="{{localize 'Delete'}}"><i class="fas fa-trash"></i></li>
|
||||
{{/if}}
|
||||
</ul>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</fieldset>
|
||||
{{!-- Mystere items list --}}
|
||||
<fieldset class="section-header flexrow">
|
||||
<legend class="text-block-header">
|
||||
{{localize 'chiaroscuro.mystere.title'}}
|
||||
{{#if data.editable_not_soft_locked}}
|
||||
<a data-item-type="mystere" class="mystere-control item-add" title="{{localize 'l5r5e.global.add'}}"><i class="fas fa-plus"></i></a>
|
||||
{{/if}}
|
||||
</legend>
|
||||
<ul class="item-list">
|
||||
{{#each data.mystereItems as |item|}}
|
||||
<li class="item technique flexcol" data-item-id="{{item._id}}">
|
||||
<ul class="item-header technique-controls">
|
||||
<li class="item-img"><img src="{{item.img}}" title="{{item.name}}" width="32px" height="32px"/></li>
|
||||
@@ -68,4 +45,8 @@
|
||||
{{/each}}
|
||||
</ul>
|
||||
</fieldset>
|
||||
{{!-- Equipped weapons list --}}
|
||||
{{> 'systems/l5rx-chiaroscuro/templates/items/weapon/weapons.html' }}
|
||||
{{!-- Equipped armors list --}}
|
||||
{{> 'systems/l5rx-chiaroscuro/templates/items/armor/armors.html' }}
|
||||
</div>
|
||||
Reference in New Issue
Block a user