92 lines
3.2 KiB
Handlebars
92 lines
3.2 KiB
Handlebars
<form class="item-sheet {{cssClass}} m5item-item" autocomplete="off">
|
|
<header class="sheet-header">
|
|
<img class="item-img" src="{{item.img}}" data-edit="img" title="{{item.name}}" />
|
|
<h1><input name="name" type="text" value="{{item.name}}" placeholder="Name" /></h1>
|
|
</header>
|
|
<div class="sheet-content">
|
|
<table>
|
|
<tr>
|
|
<td colspan="4">
|
|
<div class="flexrow">
|
|
<span>
|
|
<input id="data.equipped" type="checkbox" name="data.equipped" {{checked data.equipped}}>
|
|
<label for="data.equipped">{{localize "midgard5.equipped"}}</label>
|
|
</span>
|
|
<span>
|
|
<input id="data.magic" type="checkbox" name="data.magic" {{checked data.magic}}>
|
|
<label for="data.magic">{{localize "midgard5.magic"}}</label>
|
|
</span>
|
|
<span>
|
|
<input id="data.valuable" type="checkbox" name="data.valuable" {{checked data.valuable}}>
|
|
<label for="data.valuable">{{localize "midgard5.valuable"}}</label>
|
|
</span>
|
|
|
|
{{#if (eq item.parent.system.info.race "Zwerg")}}
|
|
<span>
|
|
<input id="data.hoarded" type="checkbox" name="data.hoarded" {{checked data.hoarded}}>
|
|
<label for="data.hoarded">{{localize "midgard5.hoarded"}}</label>
|
|
</span>
|
|
{{/if}}
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<div class="flexrow">
|
|
<span>{{localize "midgard5.item-quantity"}}</span>
|
|
<input id="data.quantity" type="number" name="data.quantity" value="{{data.quantity}}">
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="4">
|
|
<div class="flexrow">
|
|
<span>{{localize "midgard5.item-value"}}</span>
|
|
<input name="data.value" type="number" value="{{data.value}}" data-dtype="Number" />
|
|
<select class="select-mod-operation" name="data.currency" data-type="String">
|
|
{{#select data.currency}}
|
|
<option value=""></option>
|
|
<option value="copper">{{localize "midgard5.currency-copper"}}</option>
|
|
<option value="silver">{{localize "midgard5.currency-silver"}}</option>
|
|
<option value="gold">{{localize "midgard5.currency-gold"}}</option>
|
|
{{/select}}
|
|
</select>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
<div class="flexrow">
|
|
<span>{{localize "TYPES.Item.container"}}</span>
|
|
{{#if data.calc.containers}}
|
|
<select class="select-container" name="data.containerId" data-type="String">
|
|
{{#select data.containerId}}
|
|
<option value="">{{localize "midgard5.no-container"}}</option>
|
|
{{#each data.calc.containers as |container key|}}
|
|
<option value="{{key}}">{{container.label}}</option>
|
|
{{/each}}
|
|
{{/select}}
|
|
</select>
|
|
{{else}}
|
|
<span>{{localize "midgard5.assignItemToCharacter"}}</span>
|
|
{{/if}}
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<div class="flexrow">
|
|
<span>{{localize "midgard5.item-weight"}}</span>
|
|
<input id="data.weight" type="number" name="data.weight" value="{{data.weight}}">
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
{{> "systems/midgard5/templates/sheets/item/rolls.hbs"}}
|
|
|
|
{{> "systems/midgard5/templates/sheets/partial/mod.hbs" mods=data.mods calc=data.calc}}
|
|
|
|
|
|
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
|
|
</div>
|
|
</form> |