Working on 0.8.x - Character sheets related

This commit is contained in:
Vlyan
2021-04-24 17:16:52 +02:00
parent 80907c8a01
commit b6f3d42fa2
61 changed files with 1569 additions and 470 deletions

View File

@@ -1,8 +1,8 @@
<tr data-group="advancements" data-tab="advancement_rank_{{rank}}" class="flexrow row advancement tab">
<td class="curriculum" name="curriculum">{{#if advancement.data.in_curriculum}}<i class="fas fa-graduation-cap"></i> {{/if}}</td>
<td class="name" name="advancement.name"><img src="{{ advancement.img }}" title="{{ advancement.name }}"> {{ advancement.name }}</td>
<td class="xp" name="advancement.xp">{{ advancement.data.xp_used }}</td>
<td class="rank" name="advancement.rank">{{ advancement.data.rank }}</td>
<td class="name" name="advancement.name"><img src="{{ advancement.img }}" title="{{advancement.name}}"> {{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>

View File

@@ -1,49 +1,49 @@
<ul class="attributes-wrapper">
<li class="endurance-content">
<label class="attribute-label">
<strong>{{ localize 'l5r5e.attributes.endurance' }}</strong>
<input class="centered-input" type="number" name="data.endurance" value="{{data.endurance}}" data-dtype="Number" disabled/>
<strong>{{localize 'l5r5e.attributes.endurance'}}</strong>
<input class="centered-input" type="number" name="data.endurance" value="{{data.data.endurance}}" data-dtype="Number" disabled/>
</label>
<label class="attribute-label">
<strong>{{ localize 'l5r5e.attributes.fatigue' }}</strong>
<input class="centered-input select-on-focus" type="number" name="data.fatigue.value" value="{{data.fatigue.value}}" data-dtype="Number" min="0" placeholder="0"/>
<strong>{{localize 'l5r5e.attributes.fatigue'}}</strong>
<input class="centered-input select-on-focus" type="number" name="data.fatigue.value" value="{{data.data.fatigue.value}}" data-dtype="Number" min="0" placeholder="0"/>
</label>
<p class="item-description"> {{ localize 'l5r5e.attributes.endurancetip' }}</p>
<p class="item-description"> {{localize 'l5r5e.attributes.endurancetip'}}</p>
</li>
<li class="composure-content">
<label class="attribute-label">
<strong>{{ localize 'l5r5e.attributes.composure' }}</strong>
<input class="centered-input" type="number" name="data.composure" value="{{data.composure}}" data-dtype="Number" disabled/>
<strong>{{localize 'l5r5e.attributes.composure'}}</strong>
<input class="centered-input" type="number" name="data.composure" value="{{data.data.composure}}" data-dtype="Number" disabled/>
</label>
<label class="attribute-label">
<strong>{{ localize 'l5r5e.attributes.strife' }}</strong>
<input class="centered-input select-on-focus" type="number" name="data.strife.value" value="{{data.strife.value}}" data-dtype="Number" min="0" placeholder="0"/>
<strong>{{localize 'l5r5e.attributes.strife'}}</strong>
<input class="centered-input select-on-focus" type="number" name="data.strife.value" value="{{data.data.strife.value}}" data-dtype="Number" min="0" placeholder="0"/>
</label>
<p class="item-description"> {{ localize 'l5r5e.attributes.composuretip' }}</p>
<p class="item-description"> {{localize 'l5r5e.attributes.composuretip'}}</p>
</li>
<li class="focus-content">
<label class="attribute-label">
<strong>{{ localize 'l5r5e.attributes.focus' }}</strong>
<input class="centered-input" type="number" name="data.focus" value="{{data.focus}}" data-dtype="Number" disabled/>
<strong>{{localize 'l5r5e.attributes.focus' }}</strong>
<input class="centered-input" type="number" name="data.focus" value="{{data.data.focus}}" data-dtype="Number" disabled/>
</label>
<p class="item-description"> {{ localize 'l5r5e.attributes.focustip' }}</p>
<p class="item-description"> {{localize 'l5r5e.attributes.focustip'}}</p>
</li>
<li class="vigilance-content {{#if data.is_compromised}}compromised{{/if}}">
<li class="vigilance-content {{#if data.data.is_compromised}}compromised{{/if}}">
<label class="attribute-label">
<strong>{{ localize 'l5r5e.attributes.vigilance' }}</strong>
{{#if data.is_compromised}}
<strong>{{localize 'l5r5e.attributes.vigilance'}}</strong>
{{#if data.data.is_compromised}}
<input class="centered-input" type="number" value="1" disabled/>
{{else}}
<input class="centered-input" type="number" name="data.vigilance" value="{{data.vigilance}}" data-dtype="Number" disabled/>
<input class="centered-input" type="number" name="data.vigilance" value="{{data.data.vigilance}}" data-dtype="Number" disabled/>
{{/if}}
</label>
<p class="item-description"> {{ localize 'l5r5e.attributes.vigilancetip' }}</p>
<p class="item-description"> {{localize 'l5r5e.attributes.vigilancetip'}}</p>
</li>
<li class="void-content">
<label class="attribute-label">
<strong>{{ localize 'l5r5e.attributes.voidpoints' }}</strong>
<input class="centered-input select-on-focus" type="number" name="data.void_points.value" value="{{data.void_points.value}}" data-dtype="Number" placeholder="0" min="0" max="{{data.void_points.max}}"/>
<input class="centered-input" type="number" name="data.void_points.max" value="{{data.void_points.max}}" data-dtype="Number" disabled/>
<strong>{{localize 'l5r5e.attributes.voidpoints'}}</strong>
<input class="centered-input select-on-focus" type="number" name="data.void_points.value" value="{{data.data.void_points.value}}" data-dtype="Number" placeholder="0" min="0" max="{{data.data.void_points.max}}"/>
<input class="centered-input" type="number" name="data.void_points.max" value="{{data.data.void_points.max}}" data-dtype="Number" disabled/>
</label>
</li>
</ul>

View File

@@ -1,20 +1,20 @@
<fieldset class="initiative initiative-wrapper">
<legend class="section-header">
{{ localize 'l5r5e.conflict.initiative.title' }}
{{localize 'l5r5e.conflict.initiative.title'}}
<a class="encounter prepared-control" data-id="{{entity.type}}">
<i class="fa fas prepared-icon prepared-icon-{{data.prepared}} prepared-{{entity.type}}" title="{{localize (localize 'l5r5e.conflict.initiative.prepared_{value}' value=data.prepared)}}"></i>
<i class="fa fas prepared-icon prepared-icon-{{data.data.prepared}} prepared-{{entity.type}}" title="{{localize (localize 'l5r5e.conflict.initiative.prepared_{value}' value=data.data.prepared)}}"></i>
</a>
</legend>
<button class="initiative dice-picker" data-initiative="true" data-skill="sentiment">{{ localize 'l5r5e.conflict.initiative.intrigue'}}</button>
<button class="initiative dice-picker" data-initiative="true" data-skill="meditation">{{ localize 'l5r5e.conflict.initiative.duel'}}</button>
<button class="initiative dice-picker" data-initiative="true" data-skill="tactics">{{ localize 'l5r5e.conflict.initiative.skirmish'}}</button>
<button class="initiative dice-picker" data-initiative="true" data-skill="command">{{ localize 'l5r5e.conflict.initiative.mass_battle'}}</button>
<button class="initiative dice-picker" data-initiative="true" data-skill="sentiment">{{localize 'l5r5e.conflict.initiative.intrigue'}}</button>
<button class="initiative dice-picker" data-initiative="true" data-skill="meditation">{{localize 'l5r5e.conflict.initiative.duel'}}</button>
<button class="initiative dice-picker" data-initiative="true" data-skill="tactics">{{localize 'l5r5e.conflict.initiative.skirmish'}}</button>
<button class="initiative dice-picker" data-initiative="true" data-skill="command">{{localize 'l5r5e.conflict.initiative.mass_battle'}}</button>
</fieldset>
<fieldset class="stances-content flexrow">
<legend class="section-header">{{ localize 'l5r5e.conflict.stance' }}</legend>
<legend class="section-header">{{localize 'l5r5e.conflict.stance'}}</legend>
<ul class="item-list">
{{#each data.rings as |ringValue ringId|}}
{{> 'systems/l5r5e/templates/actors/character/stance.html' stance=../data.stance ringId=ringId }}
{{#each data.data.rings as |ringValue ringId|}}
{{> 'systems/l5r5e/templates/actors/character/stance.html' stance=../data.data.stance ringId=ringId}}
{{/each}}
</ul>
</fieldset>

View File

@@ -1,23 +1,23 @@
<fieldset class="xp">
<legend>{{ localize 'l5r5e.experience'}}</legend>
<legend>{{localize 'l5r5e.experience'}}</legend>
<label class="attribute-label">
{{ localize 'l5r5e.advancements.total' }}
<input class="centered-input select-on-focus" type="number" name="data.xp_total" value="{{ data.xp_total }}" data-dtype="Number" min="0" placeholder="0"/>
{{localize 'l5r5e.advancements.total'}}
<input class="centered-input select-on-focus" type="number" name="data.xp_total" value="{{data.data.xp_total}}" data-dtype="Number" min="0" placeholder="0"/>
</label>
<label class="attribute-label">
{{ localize 'l5r5e.advancements.spent' }}
<input class="centered-input select-on-focus" type="number" name="data.xp_spent" value="{{ data.xp_spent }}" data-dtype="Number" min="0" placeholder="0" disabled/>
{{localize 'l5r5e.advancements.spent'}}
<input class="centered-input select-on-focus" type="number" name="data.xp_spent" value="{{data.data.xp_spent}}" data-dtype="Number" min="0" placeholder="0" disabled/>
</label>
<label class="attribute-label">
{{ localize 'l5r5e.advancements.saved' }}
<input class="centered-input select-on-focus" type="number" name="data.xp_saved" value="{{ data.xp_saved }}" data-dtype="Number" min="0" placeholder="0" disabled/>
{{localize 'l5r5e.advancements.saved'}}
<input class="centered-input select-on-focus" type="number" name="data.xp_saved" value="{{data.data.xp_saved}}" data-dtype="Number" min="0" placeholder="0" disabled/>
</label>
</fieldset>
<fieldset class="advancement advancements-body">
<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>
<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>
<nav class="advancements-tabs tabs" data-group="advancements">
<a class="item advancements-tab" data-tab="advancement_rank_0">{{localize 'l5r5e.advancements.school_rank_0'}}</a>
{{#each advancementsListByRank as |rankObject|}}
{{#each data.advancementsListByRank as |rankObject|}}
{{#ifCond rank '>' 0}}
<a class="item advancements-tab" data-tab="advancement_rank_{{rank}}" title="{{localize 'l5r5e.advancements.school_rank'}} {{rankObject.rank}}">{{rankObject.rank}}</a>
{{/ifCond}}
@@ -27,34 +27,32 @@
<thead class="flex">
<tr class="flexrow row">
<th class="curriculum"></th>
<th class="name">{{ localize 'l5r5e.name' }}</th>
<th class="xp">{{ localize 'l5r5e.advancements.spent' }}</th>
<th class="rank">{{ localize 'l5r5e.rank' }}</th>
<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 advancementsListByRank as |rankObject|}}
{{#each data.advancementsListByRank as |rankObject|}}
{{#each rankObject.list as |advancement advancementId|}}
{{> 'systems/l5r5e/templates/actors/character/advancement.html' advancement=advancement rank=rankObject.rank editable=../../editable }}
{{> 'systems/l5r5e/templates/actors/character/advancement.html' advancement=advancement rank=rankObject.rank editable=../../options.editable}}
{{/each}}
{{#ifCond rankObject.rank '>' 0}}
<tr data-group="advancements" data-tab="advancement_rank_{{rankObject.rank}}" class="flexrow row tab">
<th class="">
{{#ifCond ../data.identity.school_rank '<' 6}}
{{#ifCond (ifCond ../data.identity.school_rank '==' rankObject.rank) '&&' (ifCond rankObject.spent '>=' rankObject.goal)}}
{{#ifCond ../data.data.identity.school_rank '<' 6}}
{{#ifCond (ifCond ../data.data.identity.school_rank '==' rankObject.rank) '&&' (ifCond rankObject.spent '>=' rankObject.goal)}}
<button type="button" name="validate-curriculum">
<i class='fas fa-check-square'></i> {{ localize 'l5r5e.advancements.curriculum_validate' }}
<i class='fas fa-check-square'></i> {{ localize 'l5r5e.advancements.curriculum_validate'}}
</button>
{{/ifCond}}
{{/ifCond}}
</th>
<th class="">
{{ localize 'l5r5e.advancements.total_xp_rank' }} :
{{ rankObject.spent }}
{{#if rankObject.goal}}/{{rankObject.goal}}{{/if}}
{{localize 'l5r5e.advancements.total_xp_rank'}} : {{rankObject.spent}}{{#if rankObject.goal}} / {{rankObject.goal}}{{/if}}
</th>
</tr>
{{/ifCond}}

View File

@@ -1,32 +1,32 @@
<ul class="identity-content">
<li>
<label class="attribute-label">
{{ localize 'l5r5e.clan' }}
<input type="text" name="data.identity.clan" value="{{data.identity.clan}}"/>
{{localize 'l5r5e.clan'}}
<input type="text" name="data.identity.clan" value="{{data.data.identity.clan}}"/>
</label>
</li>
<li>
<label class="attribute-label">
{{ localize 'l5r5e.family' }}
<input type="text" name="data.identity.family" value="{{data.identity.family}}"/>
{{localize 'l5r5e.family'}}
<input type="text" name="data.identity.family" value="{{data.data.identity.family}}"/>
</label>
</li>
<li>
<label class="attribute-label">
{{ localize 'l5r5e.schoolrank' }}
<input type="number" name="data.identity.school_rank" value="{{data.identity.school_rank}}" class="select-on-focus" data-dtype="Number" min="0" placeholder="1"/>
{{localize 'l5r5e.schoolrank'}}
<input type="number" name="data.identity.school_rank" value="{{data.data.identity.school_rank}}" class="select-on-focus" data-dtype="Number" min="0" placeholder="1"/>
</label>
</li>
<li>
<label class="attribute-label">
{{ localize 'l5r5e.school' }}
<input type="text" name="data.identity.school" value="{{data.identity.school}}"/>
{{localize 'l5r5e.school'}}
<input type="text" name="data.identity.school" value="{{data.data.identity.school}}"/>
</label>
</li>
<li>
<label class="attribute-label">
{{ localize 'l5r5e.roles' }}
<input type="text" name="data.identity.roles" value="{{data.identity.roles}}"/>
{{localize 'l5r5e.roles'}}
<input type="text" name="data.identity.roles" value="{{data.data.identity.roles}}"/>
</label>
</li>
</ul>

View File

@@ -1,48 +1,48 @@
<div class="narrative-content">
<fieldset>
<legend class="text-block-header">{{ localize 'l5r5e.social.title' }}</legend>
<label class="attribute-label">{{ localize 'l5r5e.social.ninjo' }}
<textarea type="text" name="data.social.ninjo">{{data.social.ninjo}}</textarea>
<legend class="text-block-header">{{localize 'l5r5e.social.title'}}</legend>
<label class="attribute-label">{{localize 'l5r5e.social.ninjo'}}
<textarea type="text" name="data.social.ninjo">{{data.data.social.ninjo}}</textarea>
</label>
<label class="attribute-label">{{ localize 'l5r5e.social.giri' }}
<textarea type="text" name="data.social.giri">{{data.social.giri}}</textarea>
<label class="attribute-label">{{localize 'l5r5e.social.giri'}}
<textarea type="text" name="data.social.giri">{{data.data.social.giri}}</textarea>
</label>
<label class="attribute-label">{{ localize 'l5r5e.social.titles' }}
<input type="text" name="data.social.titles" value="{{data.social.titles}}" />
<label class="attribute-label">{{localize 'l5r5e.social.titles'}}
<input type="text" name="data.social.titles" value="{{data.data.social.titles}}" />
</label>
</fieldset>
<fieldset>
<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>
{{localize 'l5r5e.social.advantages'}}
{{#if options.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}}
{{> 'systems/l5r5e/templates/items/peculiarity/peculiarity-entry.html' peculiarity=item id=id editable=../editable }}
{{#ifCond '["distinction","passion"]' 'includes' item.data.data.peculiarity_type}}
{{> 'systems/l5r5e/templates/items/peculiarity/peculiarity-entry.html' peculiarity=item id=id editable=../options.editable}}
{{/ifCond}}
{{/each}}
</ul>
</fieldset>
<fieldset>
<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>
{{localize 'l5r5e.social.disadvantages' }}
{{#if options.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}}
{{> 'systems/l5r5e/templates/items/peculiarity/peculiarity-entry.html' peculiarity=item id=id editable=../editable }}
{{#ifCond '["adversity","anxiety"]' 'includes' item.data.data.peculiarity_type}}
{{> 'systems/l5r5e/templates/items/peculiarity/peculiarity-entry.html' peculiarity=item id=id editable=../options.editable}}
{{/ifCond}}
{{/each}}
</ul>
</fieldset>
</div>
<fieldset class="narrative-note">
<legend class="text-block-header">{{ localize 'l5r5e.notes' }}</legend>
{{ editor content=data.notes.value target="data.notes.value" button=true editable=editable }}
<legend class="text-block-header">{{localize 'l5r5e.notes' }}</legend>
{{editor content=data.data.notes.value target="data.notes.value" button=true editable=options.editable}}
</fieldset>

View File

@@ -2,36 +2,36 @@
<li id="earth">
<label class="earth">
<i class="i_earth dice-picker rollable" data-ring="earth"></i>
<strong>{{ localizeRing 'earth' }}</strong>
<input class="centered-input select-on-focus" type="number" name="data.rings.earth" value="{{data.rings.earth}}" data-dtype="Number" min="1" max="9" placeholder="0"/>
<strong>{{localizeRing 'earth'}}</strong>
<input class="centered-input select-on-focus" type="number" name="data.rings.earth" value="{{data.data.rings.earth}}" data-dtype="Number" min="1" max="9" placeholder="0"/>
</label>
</li>
<li id="air">
<label class="air">
<i class="i_air dice-picker rollable" data-ring="air"></i>
<strong>{{ localizeRing 'air' }}</strong>
<input class="centered-input select-on-focus" type="number" name="data.rings.air" value="{{data.rings.air}}" data-dtype="Number" min="1" max="9" placeholder="0"/>
<strong>{{localizeRing 'air'}}</strong>
<input class="centered-input select-on-focus" type="number" name="data.rings.air" value="{{data.data.rings.air}}" data-dtype="Number" min="1" max="9" placeholder="0"/>
</label>
</li>
<li id="water">
<label class="water">
<i class="i_water dice-picker rollable" data-ring="water"></i>
<strong>{{ localizeRing 'water' }}</strong>
<input class="centered-input select-on-focus" type="number" name="data.rings.water" value="{{data.rings.water}}" data-dtype="Number" min="1" max="9" placeholder="0"/>
<strong>{{localizeRing 'water'}}</strong>
<input class="centered-input select-on-focus" type="number" name="data.rings.water" value="{{data.data.rings.water}}" data-dtype="Number" min="1" max="9" placeholder="0"/>
</label>
</li>
<li id="fire">
<label class="fire">
<i class="i_fire dice-picker rollable" data-ring="fire"></i>
<strong>{{ localizeRing 'fire' }}</strong>
<input class="centered-input select-on-focus" type="number" name="data.rings.fire" value="{{data.rings.fire}}" data-dtype="Number" min="1" max="9" placeholder="0"/>
<strong>{{localizeRing 'fire'}}</strong>
<input class="centered-input select-on-focus" type="number" name="data.rings.fire" value="{{data.data.rings.fire}}" data-dtype="Number" min="1" max="9" placeholder="0"/>
</label>
</li>
<li id="void">
<label class="void">
<i class="i_void dice-picker rollable" data-ring="void"></i>
<strong>{{ localizeRing 'void' }}</strong>
<input class="centered-input select-on-focus" type="number" name="data.rings.void" value="{{data.rings.void}}" data-dtype="Number" min="1" max="9" placeholder="0"/>
<strong>{{localizeRing 'void'}}</strong>
<input class="centered-input select-on-focus" type="number" name="data.rings.void" value="{{data.data.rings.void}}" data-dtype="Number" min="1" max="9" placeholder="0"/>
</label>
</li>
</ul>

View File

@@ -1,6 +1,6 @@
<li class="skill skill-wrapper">
<label class="skill-content">
<span class="dice-picker attribute-label rollable" data-skill="{{skillId}}">{{ localizeSkill categoryId skillId }}</span>
<span class="dice-picker attribute-label rollable" data-skill="{{skillId}}">{{localizeSkill categoryId skillId}}</span>
<input
class="centered-input select-on-focus"
type="number"

View File

@@ -1,20 +1,20 @@
<ul class="social-content">
<li>
<label class="attribute-label centered-input">
<strong>{{ localize 'l5r5e.social.honor' }}</strong>
<input class="centered-input select-on-focus" type="number" name="data.social.honor" value="{{data.social.honor}}" data-dtype="Number" placeholder="0"/>
<strong>{{localize 'l5r5e.social.honor'}}</strong>
<input class="centered-input select-on-focus" type="number" name="data.social.honor" value="{{data.data.social.honor}}" data-dtype="Number" placeholder="0"/>
</label>
</li>
<li>
<label class="attribute-label centered-input">
<strong>{{ localize 'l5r5e.social.glory' }}</strong>
<input class="centered-input select-on-focus" type="number" name="data.social.glory" value="{{data.social.glory}}" data-dtype="Number" placeholder="0"/>
<strong>{{localize 'l5r5e.social.glory'}}</strong>
<input class="centered-input select-on-focus" type="number" name="data.social.glory" value="{{data.data.social.glory}}" data-dtype="Number" placeholder="0"/>
</label>
</li>
<li>
<label class="attribute-label centered-input">
<strong>{{ localize 'l5r5e.social.status' }}</strong>
<input class="centered-input select-on-focus" type="number" name="data.social.status" value="{{data.social.status}}" data-dtype="Number" placeholder="0"/>
<strong>{{localize 'l5r5e.social.status'}}</strong>
<input class="centered-input select-on-focus" type="number" name="data.social.status" value="{{data.data.social.status}}" data-dtype="Number" placeholder="0"/>
</label>
</li>
</ul>

View File

@@ -1,7 +1,7 @@
<li class="stance-content">
<label class="stance-title {{ringId}}">
{{ localizeRing ringId }}
{{localizeRing ringId}}
<input id="stance_{{ringId}}" type="radio" name="data.stance" value="{{ringId}}" {{radioChecked ringId stance}}/>
</label>
<p class="item-description {{#ifCond ringId '==' stance}}toggle-active{{/ifCond}}">{{ localizeStanceTip ringId }}</p>
<p class="item-description {{#ifCond ringId '==' stance}}toggle-active{{/ifCond}}">{{localizeStanceTip ringId}}</p>
</li>

View File

@@ -1,24 +1,24 @@
<div class="techniques-wrapper">
<div class="checklist">
<i>{{ localize 'l5r5e.techniques.type'}}</i>
{{#each actor.data.techniquesList as |technique|}}
<i>{{localize 'l5r5e.techniques.type'}}</i>
{{#each data.techniquesList as |technique|}}
<label>
<input type="checkbox" name="data.techniques.{{technique}}" {{checked (lookup ../actor.data.techniques technique)}} />
<input type="checkbox" name="data.techniques.{{technique}}" {{checked (lookup ../data.data.techniques technique)}} />
{{localizeTechnique technique}}
</label>
{{/each}}
</div>
{{#each actor.data.splitTechniquesList as |list technique|}}
{{#each 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 ../options.editable '&&' (lookup ../data.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}}
</legend>
<ul class="item-list">
{{#each list as |item id|}}
{{> 'systems/l5r5e/templates/items/technique/technique-entry.html' technique=item editable=../../editable }}
{{> 'systems/l5r5e/templates/items/technique/technique-entry.html' technique=item editable=../../options.editable}}
{{/each}}
</ul>
</fieldset>

View File

@@ -1,12 +1,12 @@
<fieldset data-step="{{stepName}}" class="tq-drag-n-drop">
<ul class="item-list">
{{#each itemsList as |item id|}}
{{> 'systems/l5r5e/templates/items/property/property-entry.html' item=item id=id editable=../options.editable }}
{{> 'systems/l5r5e/templates/items/property/property-entry.html' property=item id=id editable=../options.editable}}
{{/each}}
</ul>
</fieldset>
{{#ifCond itemsList.length '<' hideDndAt}}
<fieldset class="{{itemType}} dropbox" data-step="{{stepName}}">
<legend class="section-header"><i class="fa fa-arrow-down" aria-hidden="true"></i> {{ localize 'l5r5e.global.drop_here' }}</legend>
<legend class="section-header"><i class="fa fa-arrow-down" aria-hidden="true"></i> {{localize 'l5r5e.global.drop_here'}}</legend>
</fieldset>
{{/ifCond}}