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,10 +1,10 @@
<fieldset class="properties">
<legend class="section-header">{{ localize 'l5r5e.properties' }}</legend>
<legend class="section-header">{{localize 'l5r5e.properties'}}</legend>
<ul class="item-list">
{{#each properties as |item id|}}
<!-- {{#ifCond item.type '==' 'property'}}-->
{{> 'systems/l5r5e/templates/items/property/property-entry.html' item=item id=id editable=../editable }}
<!-- {{/ifCond}}-->
{{#each properties as |property id|}}
{{!-- {{#ifCond property.type '==' 'property'}} --}}
{{> 'systems/l5r5e/templates/items/property/property-entry.html' property=property id=id editable=../options.editable}}
{{!-- {{/ifCond}} --}}
{{/each}}
</ul>
</fieldset>

View File

@@ -1,12 +1,12 @@
<li class="item property flexcol toggle-on-click" data-toggle="item-description-{{item._id}}" data-property-id="{{item._id}}">
<li class="item property flexcol toggle-on-click" data-toggle="item-description-{{property.id}}" data-property-id="{{property.id}}">
<ul class="item-header property-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="{{property.img}}" title="{{property.name}}" width="32px" height="32px"/></li>
<li class="item-name">{{property.name}}</li>
{{#if editable}}
<li class="property-delete" title="{{localize 'Delete'}}"><i class="fas fa-trash"></i></li>
{{/if}}
</ul>
{{#if item.data.data.description}}
<div class="item-description item-description-{{item._id}}">{{{ item.data.data.description }}}</div>
{{#if property.data.data.description}}
<div class="item-description item-description-{{property.id}}">{{{property.data.data.description}}}</div>
{{/if}}
</li>

View File

@@ -1,10 +1,10 @@
<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">
{{> 'systems/l5r5e/templates/items/item/item-infos.html' }}
{{> 'systems/l5r5e/templates/items/item/item-infos.html'}}
</section>
</form>