add armor item
This commit is contained in:
12
system/templates/item/armor-entry.html
Normal file
12
system/templates/item/armor-entry.html
Normal file
@@ -0,0 +1,12 @@
|
||||
<li class="item flexcol" data-item-id="{{item._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="icon-stat-container">{{item.data.weight}}</li>
|
||||
<li class="icon-stat-container">{{item.data.armor.physical}} <i class="fas fa-certificate"></i></li>
|
||||
<li class="icon-stat-container">{{item.data.armor.spiritual}} <i class="fas fa-arrows-alt-h"></i></li>
|
||||
<li class="item-edit" title="Edit Feat"><i class="fas fa-edit"></i></li>
|
||||
<li class="item-delete" title="Delete Feat"><i class="fas fa-trash"></i></li>
|
||||
</ul>
|
||||
<div class="item-description">{{{ item.data.properties }}}</div>
|
||||
</li>
|
||||
41
system/templates/item/armor-sheet.html
Normal file
41
system/templates/item/armor-sheet.html
Normal file
@@ -0,0 +1,41 @@
|
||||
<form class="{{cssClass}}" autocomplete="off">
|
||||
<header class="sheet-header">
|
||||
<img class="profile-img" src="{{item.img}}" data-edit="img" title="{{item.name}}"/>
|
||||
<div class="header-fields">
|
||||
<h1 class="charname"><input name="name" type="text" value="{{item.name}}" placeholder="Name"/></h1>
|
||||
<div class="resource">
|
||||
<label>{{ localize 'l5r5e.quantity' }}</label>
|
||||
<input type="text" name="data.quantity" value="{{data.quantity}}" data-dtype="Number"/>
|
||||
</div>
|
||||
<div class="resource">
|
||||
<label>{{ localize 'l5r5e.weight' }}</label>
|
||||
<input type="text" name="data.weight" value="{{data.weight}}" data-dtype="Number"/>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
{{!-- Sheet Body --}}
|
||||
<section class="sheet-body">
|
||||
{{!-- Sheet Tab Navigation --}}
|
||||
<nav class="sheet-tabs tabs" data-group="primary">
|
||||
<a class="item" data-tab="description">Description</a>
|
||||
</nav>
|
||||
{{!-- Description Tab --}}
|
||||
<article class="tab" data-group="primary" data-tab="description">
|
||||
{{ localize 'l5r5e.armors.title' }}
|
||||
<fieldset class="weapon-stats-content">
|
||||
<label class="attribute-label">
|
||||
{{ localize 'l5r5e.armors.physical' }}
|
||||
<input type="text" name="data.armor.physical" value="{{data.armor.physical}}" data-dtype="Number" placeholder="0"/>
|
||||
</label>
|
||||
<label class="attribute-label">
|
||||
{{ localize 'l5r5e.armors.spiritual' }}
|
||||
<input type="text" name="data.armor.spiritual" value="{{data.armor.spiritual}}" data-dtype="Number" placeholder="0"/>
|
||||
</label>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<legend class="text-block-header">{{ localize 'l5r5e.properties' }}</legend>
|
||||
{{editor content=data.properties target="data.properties" button=true owner=owner editable=editable}}
|
||||
</fieldset>
|
||||
</article>
|
||||
</section>
|
||||
</form>
|
||||
10
system/templates/item/armors.html
Normal file
10
system/templates/item/armors.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<fieldset class="armors-content">
|
||||
<legend class="section-header">{{ localize 'l5r5e.armors.title' }}</legend>
|
||||
<ul class="item-list">
|
||||
{{#each actor.items as |item id|}}
|
||||
{{#if item.isArmor }}
|
||||
{{> 'systems/l5r5e/templates/item/armor-entry.html' item=item id=id }}
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
</ul>
|
||||
</fieldset>
|
||||
@@ -1,14 +1,14 @@
|
||||
<ul class="narrative-content">
|
||||
<li>
|
||||
<label class="attribute-label">{{ localize 'l5r5e.socialstanding.ninjo' }}</label>
|
||||
<label class="attribute-label">{{ localize 'l5r5e.social.ninjo' }}</label>
|
||||
<input type="text" name="data.social_standing.ninjo" value="{{data.social.ninjo}}"/>
|
||||
</li>
|
||||
<li>
|
||||
<label class="attribute-label">{{ localize 'l5r5e.socialstanding.giri' }}</label>
|
||||
<label class="attribute-label">{{ localize 'l5r5e.social.giri' }}</label>
|
||||
<input type="text" name="data.social_standing.giri" value="{{data.social.giri}}"/>
|
||||
</li>
|
||||
<li>
|
||||
<label class="attribute-label">{{ localize 'l5r5e.socialstanding.socialtitles' }}</label>
|
||||
<label class="attribute-label">{{ localize 'l5r5e.social.titles' }}</label>
|
||||
<input type="text" name="data.social_standing.titles" value="{{data.social.titles}}"/>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
<ul class="social-content">
|
||||
<li>
|
||||
<label class="attribute-label centered-input">
|
||||
{{ localize 'l5r5e.socialstanding.honor' }}
|
||||
{{ localize 'l5r5e.social.honor' }}
|
||||
<input class="centered-input" type="text" name="data.social.honor" value="{{data.social.honor}}" placeholder="0"/>
|
||||
</label>
|
||||
</li>
|
||||
<li>
|
||||
<label class="attribute-label centered-input">
|
||||
{{ localize 'l5r5e.socialstanding.glory' }}
|
||||
{{ localize 'l5r5e.social.glory' }}
|
||||
<input class="centered-input" type="text" name="data.social.glory" value="{{data.social.glory}}" placeholder="0"/>
|
||||
</label>
|
||||
</li>
|
||||
<li>
|
||||
<label class="attribute-label centered-input">
|
||||
{{ localize 'l5r5e.socialstanding.status' }}
|
||||
{{ localize 'l5r5e.social.status' }}
|
||||
<input class="centered-input" type="text" name="data.social.status" value="{{data.social.status}}" placeholder="0"/>
|
||||
</label>
|
||||
</li>
|
||||
|
||||
@@ -99,5 +99,7 @@
|
||||
|
||||
{{> 'systems/l5r5e/templates/item/weapons.html' }}
|
||||
|
||||
{{> 'systems/l5r5e/templates/item/armor.html' }}
|
||||
|
||||
</section>
|
||||
</form>
|
||||
Reference in New Issue
Block a user