Working on 0.8.x - Character sheets related
This commit is contained in:
@@ -1,22 +1,22 @@
|
||||
<li class="item armor flexcol toggle-on-click" data-toggle="item-description-{{item._id}}">
|
||||
<li class="item armor flexcol toggle-on-click" data-toggle="item-description-{{armor.id}}">
|
||||
<ul class="item-header item-control">
|
||||
<li class="item-img"><img src="{{item.img}}" title="{{item.name}}" width="32px" height="32px"/></li>
|
||||
<li class="item-name">{{ item.name }}</li>
|
||||
<li class="item-img"><img src="{{armor.img}}" title="{{armor.name}}" width="32px" height="32px"/></li>
|
||||
<li class="item-name">{{armor.name}}</li>
|
||||
<li class="icon-stat-container">
|
||||
<i class="fas fa-tint" title="{{ localize 'l5r5e.armors.type' }} {{ localize 'l5r5e.armors.physical' }}"> {{item.data.armor.physical}}</i>
|
||||
<i class="fas fa-bolt" title="{{ localize 'l5r5e.armors.type' }} {{ localize 'l5r5e.armors.supernatural' }}"> {{item.data.armor.supernatural}}</i>
|
||||
<i class="fas fa-tint" title="{{localize 'l5r5e.armors.type'}} {{localize 'l5r5e.armors.physical'}}"> {{armor.data.data.armor.physical}}</i>
|
||||
<i class="fas fa-bolt" title="{{ localize 'l5r5e.armors.type'}} {{localize 'l5r5e.armors.supernatural'}}"> {{armor.data.data.armor.supernatural}}</i>
|
||||
</li>
|
||||
{{#if editable}}
|
||||
<li data-item-id="{{item._id}}" class="item-edit" title="{{localize 'l5r5e.global.edit'}}"><i class="fas fa-edit"></i></li>
|
||||
<li data-item-id="{{item._id}}" class="item-delete" title="{{localize 'Delete'}}"><i class="fas fa-trash"></i></li>
|
||||
<li data-item-id="{{armor.id}}" class="item-edit" title="{{localize 'l5r5e.global.edit'}}"><i class="fas fa-edit"></i></li>
|
||||
<li data-item-id="{{armor.id}}" class="item-delete" title="{{localize 'Delete'}}"><i class="fas fa-trash"></i></li>
|
||||
{{/if}}
|
||||
</ul>
|
||||
<ul class="item-properties">
|
||||
{{#each item.data.properties as |property id|}}
|
||||
{{#each armor.data.data.properties as |property id|}}
|
||||
<li>{{{ property.name }}}</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
{{#if item.data.description}}
|
||||
<div class="item-description item-description-{{item._id}}">{{{ item.data.description }}}</div>
|
||||
{{#if armor.data.data.description}}
|
||||
<div class="item-description item-description-{{armor.id}}">{{{ armor.data.data.description }}}</div>
|
||||
{{/if}}
|
||||
</li>
|
||||
@@ -1,14 +1,14 @@
|
||||
<form class="{{cssClass}}" autocomplete="off">
|
||||
<header class="sheet-header">
|
||||
<img class="profile-img" src="{{item.img}}" data-edit="img" title="{{item.name}}"/>
|
||||
<h1 class="charname"><input name="name" type="text" value="{{item.name}}" placeholder="Name"/></h1>
|
||||
<img class="profile-img" src="{{document.img}}" data-edit="img" title="{{document.name}}"/>
|
||||
<h1 class="charname"><input name="name" type="text" value="{{document.name}}" placeholder="Name"/></h1>
|
||||
</header>
|
||||
{{!-- Sheet Body --}}
|
||||
<section class="sheet-body">
|
||||
{{!-- attributes --}}
|
||||
<article class="attributes" data-group="primary" data-tab="description">
|
||||
<label class="equipped checkbox">
|
||||
<input type="checkbox" name="data.equipped" {{checked item.data.equipped}} />
|
||||
<input type="checkbox" name="data.equipped" {{checked document.data.data.equipped}} />
|
||||
{{ localize 'l5r5e.armors.equipped' }}
|
||||
</label>
|
||||
{{> 'systems/l5r5e/templates/items/item/item-value.html' }}
|
||||
@@ -16,17 +16,17 @@
|
||||
<legend class="text-header">{{ localize 'l5r5e.armors.type' }}</legend>
|
||||
<label>
|
||||
{{ localize 'l5r5e.armors.physical' }}
|
||||
<input class="select-on-focus" type="number" name="data.armor.physical" value="{{data.armor.physical}}" data-dtype="Number" min="0" placeholder="0"/>
|
||||
<input class="select-on-focus" type="number" name="data.armor.physical" value="{{data.data.armor.physical}}" data-dtype="Number" min="0" placeholder="0"/>
|
||||
</label>
|
||||
<label>
|
||||
{{ localize 'l5r5e.armors.supernatural' }}
|
||||
<input class="select-on-focus" type="number" name="data.armor.supernatural" value="{{data.armor.supernatural}}" data-dtype="Number" min="0" placeholder="0"/>
|
||||
<input class="select-on-focus" type="number" name="data.armor.supernatural" value="{{data.data.armor.supernatural}}" data-dtype="Number" min="0" placeholder="0"/>
|
||||
</label>
|
||||
</fieldset>
|
||||
</article>
|
||||
<article class="properties" data-group="primary" data-tab="properties">
|
||||
{{> 'systems/l5r5e/templates/items/property/properties.html' properties=data.propertiesList }}
|
||||
</article>
|
||||
{{> 'systems/l5r5e/templates/items/item/item-infos.html' }}
|
||||
{{> 'systems/l5r5e/templates/items/item/item-infos.html'}}
|
||||
</section>
|
||||
</form>
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
<fieldset class="armors-content">
|
||||
<legend class="section-header">
|
||||
{{localize 'l5r5e.armors.title'}}
|
||||
{{#if editable}}
|
||||
{{#if options.editable}}
|
||||
<a data-item-type="armor" data-item-eqquiped="true" class="armor-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 (ifCond item.type '==' 'armor') '&&' (ifCond item.data.equipped '==' true)}}
|
||||
{{> 'systems/l5r5e/templates/items/armor/armor-entry.html' item=item id=id editable=../editable }}
|
||||
{{#ifCond (ifCond item.type '==' 'armor') '&&' (ifCond item.data.data.equipped '==' true)}}
|
||||
{{> 'systems/l5r5e/templates/items/armor/armor-entry.html' armor=item id=id editable=../options.editable }}
|
||||
{{/ifCond}}
|
||||
{{/each}}
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user