<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>
					</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>
					<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" data-type="String">
								{{#select data}}
									<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>
			</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>