<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.isKido" type="checkbox" name="data.isKido" {{checked data.isKido}}>
								<label for="data.isKido">{{localize "midgard5.kido"}}</label>
							</span>
						</div>
					</td>
				</tr>
				<tr>
					<td>{{localize "midgard5.bonus"}}</td>
					<td><input name="data.bonus" type="text" value="{{data.bonus}}" data-dtype="Number" /></td>
					<td>{{localize "midgard5.actor-ap"}}</td>
					<td><input name="data.ap" type="text" value="{{data.ap}}" data-dtype="String" /></td>
				</tr>
				<tr>
					{{#unless item.system.isKido}}
					<td>{{localize "midgard5.kampfkunst-type"}}</td>
					<td>
						<select class="select-type" name="data.type" data-type="String">
							{{#select data.type}}
								{{#each data.kampfkunstTypeSelection as |label key|}}
									<option value="{{key}}">{{localize label}}</option>
								{{/each}}
							{{/select}}
						</select>
					</td>
					{{else}}
					<td>{{localize "midgard5.kido-type"}}</td>
					<td>
						<select class="select-type" name="data.type" data-type="String">
							{{#select data.type}}
								{{#each data.kidoTypeSelection as |label key|}}
									<option value="{{key}}">{{localize label}}</option>
								{{/each}}
							{{/select}}
						</select>
					</td>
					{{/unless}}
					{{#unless item.system.isKido}}
						{{#if (eq item.system.type "angriff")}}
						<td>{{localize "midgard5.kampfkunst-variante"}}</td>
						<td>
							<select class="select-variante" name="data.variante" data-type="String">
								{{#select data.variante}}
									{{#each data.kampfkunstVarianteSelection as |label key|}}
										<option value="{{key}}">{{localize label}}</option>
									{{/each}}
								{{/select}}
							</select>
						</td>
						{{/if}}
					{{else}}
						{{#unless (eq item.system.type "finte")}}
						<td>{{localize "midgard5.kido-variante"}}</td>
						<td>
							<select class="select-variante" name="data.variante" data-type="String">
								{{#select data.variante}}
									{{#each data.kidoVarianteSelection as |label key|}}
										<option value="{{key}}">{{localize label}}</option>
									{{/each}}
								{{/select}}
							</select>
						</td>
						{{/unless}}
					{{/unless}}
				</tr>
				<td>{{localize "midgard5.skill"}}</td>
					<td>
						{{#if data.calc.generalSkills}}
							<select class="select-skill" name="data.skillId" data-type="String">
								{{#select data.skillId}}
									<option value="">{{localize "midgard5.no-skill"}}</option>
									{{#each data.calc.generalSkills as |skill key|}}
										<option value="{{key}}">{{skill.label}}</option>
									{{/each}}
								{{/select}}
							</select>
						{{else}}
							<span>{{localize "midgard5.assignItemToCharacter"}}</span>
						{{/if}}
					</td>
			</tbody>
		</table>
		
		{{> "systems/midgard5/templates/sheets/item/rolls.hbs"}}

		{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
	</div>
</form>