Working on Compatibility for FVTT v10
This commit is contained in:
@@ -7,9 +7,9 @@
|
||||
<li data-item-id="{{peculiarity.id}}" class="item-control item-delete" title="{{localize 'Delete'}}"><i class="fas fa-trash"></i></li>
|
||||
{{/if}}
|
||||
</ul>
|
||||
{{#if peculiarity.data.data.types}}
|
||||
{{#if peculiarity.system.types}}
|
||||
<ul class="item-properties">
|
||||
<li>{{peculiarity.data.data.types}}</li>
|
||||
<li>{{peculiarity.system.types}}</li>
|
||||
</ul>
|
||||
{{/if}}
|
||||
</li>
|
||||
@@ -7,39 +7,39 @@
|
||||
<section class="sheet-body">
|
||||
{{!-- Attributes Tab --}}
|
||||
<article class="attributes" data-group="primary" data-tab="attributes">
|
||||
<select name="data.ring">
|
||||
{{#select data.data.ring}}
|
||||
<select name="system.ring">
|
||||
{{#select data.system.ring}}
|
||||
{{#each data.ringsList as |obj|}}
|
||||
<option value="{{obj.id}}">{{obj.label}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
<select class="attribute" name="data.peculiarity_type">
|
||||
{{#select data.data.peculiarity_type}}
|
||||
<select class="attribute" name="system.peculiarity_type">
|
||||
{{#select data.system.peculiarity_type}}
|
||||
{{#each data.subTypesList as |type|}}
|
||||
<option value="{{type.id}}">{{type.label}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
<label class="cursus attribute-value checkbox">
|
||||
<input type="checkbox" name="data.in_curriculum" {{checked data.data.in_curriculum}} />
|
||||
<input type="checkbox" name="system.in_curriculum" {{checked data.system.in_curriculum}} />
|
||||
{{localize 'l5r5e.advancements.curriculum'}}
|
||||
</label>
|
||||
<label class="attribute">
|
||||
{{localize 'l5r5e.advancements.spent'}}
|
||||
<input class="select-on-focus" type="number" name="data.xp_used" value="{{data.data.xp_used}}" data-dtype="Number" min="0" placeholder="0" />
|
||||
<input class="select-on-focus" type="number" name="system.xp_used" value="{{data.system.xp_used}}" data-dtype="Number" min="0" placeholder="0" />
|
||||
</label>
|
||||
<label class="attribute">
|
||||
{{localize 'l5r5e.sheets.rank' }}
|
||||
<input class="select-on-focus" type="number" name="data.rank" value="{{data.data.rank}}" data-dtype="Number" min="0" placeholder="0" />
|
||||
<input class="select-on-focus" type="number" name="system.rank" value="{{data.system.rank}}" data-dtype="Number" min="0" placeholder="0" />
|
||||
</label>
|
||||
<label class="attribute">
|
||||
{{localize 'l5r5e.sheets.bought_at_rank'}}
|
||||
<input class="select-on-focus" type="number" name="data.bought_at_rank" value="{{data.data.bought_at_rank}}" data-dtype="Number" min="0" placeholder="0" />
|
||||
<input class="select-on-focus" type="number" name="system.bought_at_rank" value="{{data.system.bought_at_rank}}" data-dtype="Number" min="0" placeholder="0" />
|
||||
</label>
|
||||
<label class="attribute full">
|
||||
{{localize 'l5r5e.sheets.types' }}
|
||||
<input type="text" name="data.types" value="{{data.data.types}}" />
|
||||
<input type="text" name="system.types" value="{{data.system.types}}" />
|
||||
</label>
|
||||
</article>
|
||||
{{> 'systems/l5r5e/templates/items/item/item-infos.html'}}
|
||||
|
||||
@@ -1,33 +1,33 @@
|
||||
<div class="{{cssClass}}" data-actor-id="{{actor.data._id}}" data-item-id="{{data._id}}">
|
||||
<div class="{{cssClass}}" data-actor-id="{{actor._id}}" data-item-id="{{data._id}}">
|
||||
<header class="card-header">
|
||||
<h2 class="item-name"><img src="{{data.img}}" title="{{data.name}}" /> {{data.name}}</h2>
|
||||
</header>
|
||||
<section class="sheet-body">
|
||||
<ul>
|
||||
<li>
|
||||
<strong>{{localize 'l5r5e.rings.label'}}</strong> : {{localizeRing data.data.ring}}
|
||||
<strong>{{localize 'l5r5e.rings.label'}}</strong> : {{localizeRing data.system.ring}}
|
||||
</li>
|
||||
<li>
|
||||
<strong>{{localize 'l5r5e.sheets.types'}}</strong> : {{localize (localize 'l5r5e.peculiarities.types.{type}' type=data.data.peculiarity_type)}}
|
||||
<strong>{{localize 'l5r5e.sheets.types'}}</strong> : {{localize (localize 'l5r5e.peculiarities.types.{type}' type=data.system.peculiarity_type)}}
|
||||
</li>
|
||||
<li>
|
||||
<strong>{{localize 'l5r5e.advancements.curriculum'}}</strong> : {{localizeYesNo data.data.in_curriculum}}
|
||||
<strong>{{localize 'l5r5e.advancements.curriculum'}}</strong> : {{localizeYesNo data.system.in_curriculum}}
|
||||
</li>
|
||||
<li>
|
||||
<strong>{{localize 'l5r5e.advancements.spent'}}</strong> : {{data.data.xp_used}}
|
||||
<strong>{{localize 'l5r5e.advancements.spent'}}</strong> : {{data.system.xp_used}}
|
||||
</li>
|
||||
<li>
|
||||
<strong>{{localize 'l5r5e.sheets.rank'}}</strong> : {{data.data.rank}}
|
||||
<strong>{{localize 'l5r5e.sheets.rank'}}</strong> : {{data.system.rank}}
|
||||
</li>
|
||||
<li>
|
||||
<strong>{{localize 'l5r5e.sheets.bought_at_rank'}}</strong> : {{data.data.bought_at_rank}}
|
||||
<strong>{{localize 'l5r5e.sheets.bought_at_rank'}}</strong> : {{data.system.bought_at_rank}}
|
||||
</li>
|
||||
<li>
|
||||
<strong>{{localize 'l5r5e.sheets.types'}}</strong> : {{data.data.types}}
|
||||
<strong>{{localize 'l5r5e.sheets.types'}}</strong> : {{data.system.types}}
|
||||
</li>
|
||||
</ul>
|
||||
{{!--item-infos--}}
|
||||
<p><strong>{{localize 'l5r5e.sheets.description'}}</strong> : {{{enrichHTML data.data.description}}}</p>
|
||||
<p><strong>{{localize 'l5r5e.sheets.book_reference'}}</strong> : {{data.data.book_reference}}</p>
|
||||
<p><strong>{{localize 'l5r5e.sheets.description'}}</strong> : {{{data.enrichedHtml.description}}}</p>
|
||||
<p><strong>{{localize 'l5r5e.sheets.book_reference'}}</strong> : {{data.system.book_reference}}</p>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user