<form class="item-sheet {{cssClass}}" 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>
			<tbody>
				<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 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>{{localize "midgard5.lpProtection"}}</td>
					<td><input name="data.lpProtection" type="text" value="{{data.lpProtection}}" data-dtype="Number" /></td>

					<td>{{localize "midgard5.apProtection"}}</td>
					<td><input name="data.apProtection" type="text" value="{{data.apProtection}}" data-dtype="Number" /></td>
				</tr>

				<tr>
					<td>{{localize "midgard5.attackBonus"}}</td>
					<td><input name="data.stats.attackBonus" type="text" value="{{data.stats.attackBonus}}" data-dtype="Number" /></td>

					<td>{{localize "midgard5.defenseBonus"}}</td>
					<td><input name="data.stats.defenseBonus" type="text" value="{{data.stats.defenseBonus}}" data-dtype="Number" /></td>
				</tr>

				<tr>
					<td>{{localize "midgard5.movementRange"}}</td>
					<td><input name="data.stats.movementBonus" type="text" value="{{data.stats.movementBonus}}" data-dtype="Number" /></td>

					<td>{{localize "midgard5.actor-gw-long"}}</td>
					<td><input name="data.attributeMod.gw" type="text" value="{{data.attributeMod.gw}}" data-dtype="Number" /></td>
				</tr>
			</tbody>
		</table>

		{{> "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>