Add npc sheet template + css adjustments
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="weapon-stats-content">
|
||||
{{ localize 'l5r5e.armors.title' }}
|
||||
<legend class="text-header">{{ localize 'l5r5e.armors.title' }}</legend>
|
||||
<label class="attribute-label">
|
||||
{{ localize 'l5r5e.armors.physical' }}
|
||||
<input type="text" name="data.armor.physical" value="{{data.armor.physical}}" data-dtype="Number" placeholder="0"/>
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
<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 }} x{{ item.data.quantity }}</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>
|
||||
<li class="item-edit" title="Edit Item"><i class="fas fa-edit"></i></li>
|
||||
<li class="item-delete" title="Delete Item"><i class="fas fa-trash"></i></li>
|
||||
</ul>
|
||||
<div class="item-description">{{{ feat.data.description }}}</div>
|
||||
<div class="item-properties">{{{ feat.data.properties }}}</div>
|
||||
<div class="item-description">{{{ item.data.description }}}</div>
|
||||
<div class="item-properties">{{{ item.data.properties }}}</div>
|
||||
</li>
|
||||
@@ -45,25 +45,25 @@
|
||||
<li class="attribute-control" data-action="create"><i class="fas fa-plus"></i></li>
|
||||
</ul>
|
||||
<ol class="attributes-list">
|
||||
{{#each data.attributes as |attr key|}}
|
||||
<li class="attribute flexrow" data-attribute="{{key}}">
|
||||
<input class="attribute-key" type="text" name="data.attributes.{{key}}.key" value="{{key}}"/>
|
||||
{{#if attr.isCheckbox}}
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.attributes.{{key}}.value" {{checked attr.value}}/></label>
|
||||
{{else}}
|
||||
<input class="attribute-value" type="text" name="data.attributes.{{key}}.value" value="{{attr.value}}" data-dtype="{{attr.dtype}}"/>
|
||||
{{/if}}
|
||||
<input class="attribute-label" type="text" name="data.attributes.{{key}}.label" value="{{attr.label}}"/>
|
||||
<select class="attribute-dtype" name="data.attributes.{{key}}.dtype">
|
||||
{{#select attr.dtype}}
|
||||
{{#each ../dtypes as |t|}}
|
||||
<option value="{{t}}">{{t}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
<a class="attribute-control" data-action="delete"><i class="fas fa-trash"></i></a>
|
||||
</li>
|
||||
{{/each}}
|
||||
{{#each data.attributes as |attr key|}}
|
||||
<li class="attribute flexrow" data-attribute="{{key}}">
|
||||
<input class="attribute-key" type="text" name="data.attributes.{{key}}.key" value="{{key}}"/>
|
||||
{{#if attr.isCheckbox}}
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.attributes.{{key}}.value" {{checked attr.value}}/></label>
|
||||
{{else}}
|
||||
<input class="attribute-value" type="text" name="data.attributes.{{key}}.value" value="{{attr.value}}" data-dtype="{{attr.dtype}}"/>
|
||||
{{/if}}
|
||||
<input class="attribute-label" type="text" name="data.attributes.{{key}}.label" value="{{attr.label}}"/>
|
||||
<select class="attribute-dtype" name="data.attributes.{{key}}.dtype">
|
||||
{{#select attr.dtype}}
|
||||
{{#each ../dtypes as |t|}}
|
||||
<option value="{{t}}">{{t}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
<a class="attribute-control" data-action="delete"><i class="fas fa-trash"></i></a>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
</article>
|
||||
</section>
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
<legend>{{ localize 'l5r5e.equipment' }}</legend>
|
||||
<ul class="item-list">
|
||||
{{#each actor.items as |item id|}}
|
||||
{{#if item.isEquipment }}
|
||||
{{> 'systems/l5r5e/templates/item/item-entry.html' item=item id=id }}
|
||||
{{/if}}
|
||||
{{#if item.isEquipment }}
|
||||
{{> 'systems/l5r5e/templates/item/item-entry.html' item=item id=id }}
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
</ul>
|
||||
</fieldset>
|
||||
Reference in New Issue
Block a user