Files

78 lines
3.3 KiB
Handlebars

<section class="mgne-sheet">
<div class="sheet-header">
<img class="item-portrait" src="{{item.img}}" data-edit="img" data-action="editImage" alt="{{item.name}}" />
<div class="header-fields">
<input type="text" name="name" value="{{source.name}}" />
</div>
</div>
<div class="item-form-grid item-form-grid-three">
<div class="item-form-row">
<label>{{localize "MGNE.Common.Category"}}</label>
<select name="system.category">
{{#each selectOptions.weaponCategories}}
<option value="{{value}}" {{#if (isEqual ../source.system.category value)}}selected{{/if}}>{{label}}</option>
{{/each}}
</select>
</div>
<div class="item-form-row">
<label>{{localize "MGNE.Common.Damage"}}</label>
<input type="text" name="system.damage" value="{{source.system.damage}}" />
</div>
<div class="item-form-row">
<label>{{localize "MGNE.Common.Range"}}</label>
<input type="text" name="system.range" value="{{source.system.range}}" />
</div>
<div class="item-form-row">
<label>{{localize "MGNE.Common.Weight"}}</label>
<select name="system.weight">
{{#each selectOptions.weightCategories}}
<option value="{{value}}" {{#if (isEqual ../source.system.weight value)}}selected{{/if}}>{{label}}</option>
{{/each}}
</select>
</div>
<div class="item-form-row">
<label>{{localize "MGNE.Common.DurabilityDie"}}</label>
<select name="system.durabilityDie">
{{#each selectOptions.usageDice}}
<option value="{{value}}" {{#if (isEqual ../source.system.durabilityDie value)}}selected{{/if}}>{{label}}</option>
{{/each}}
</select>
</div>
<div class="item-form-row">
<label>{{localize "MGNE.Common.UsageDie"}}</label>
<select name="system.usageDie">
{{#each selectOptions.usageDice}}
<option value="{{value}}" {{#if (isEqual ../source.system.usageDie value)}}selected{{/if}}>{{label}}</option>
{{/each}}
</select>
</div>
<div class="item-form-row">
<label>{{localize "MGNE.Common.Quantity"}}</label>
<input type="number" name="system.quantity" value="{{source.system.quantity}}" />
</div>
</div>
<div class="item-check-grid check-grid">
<label><input type="checkbox" name="system.equipped" {{#if source.system.equipped}}checked{{/if}} /> {{localize "MGNE.Common.Equipped"}}</label>
<label><input type="checkbox" name="system.broken" {{#if source.system.broken}}checked{{/if}} /> {{localize "MGNE.Common.Broken"}}</label>
</div>
<div class="inventory-header">
<h3>{{localize "MGNE.Common.Properties"}}</h3>
</div>
<div class="weapon-properties-grid">
<input type="hidden" name="system.properties" value="" />
{{#each selectOptions.weaponProperties}}
<label class="property-check" title="{{hint}}">
<input type="checkbox" name="system.properties" value="{{value}}"
{{#if (includes ../source.system.properties value)}}checked{{/if}} />
{{label}}
</label>
{{/each}}
</div>
<div class="inventory-header">
<h3>{{localize "MGNE.Common.Description"}}</h3>
</div>
<fieldset>
{{formInput systemFields.description enriched=(lookup enrichedFields "description") value=system.description name="system.description" toggled=true}}
</fieldset>
</section>