<!-- TODO Shadowrun6ActorSheetCritter is not in use  -->
<!-- TODO rework #select -->

<form class="{{cssClass}}" autocomplete="off">
  <div class="npc-firstline">
    <span>
      Editable 
      <label class="switch">
        <input name="editmode" type="checkbox" data-item-id="{{this.id}}" data-check="system.editmode" {{checked this.system.editmode}} type="checkbox" data-dtype="Boolean"/>
        <span class="shadowrun6-slider round"></span>
      </label>
    {{#if system.editmode}}
    <select name="critterSubtype" data-field="system.subtype" style="background: rgba(255,255,255,0.25); border: 0px">
				{{#select system.subtype}}
					{{#each config.NPC_SUBTYPES as |type id|}}
						<option value="{{@type}}" name=system.subtype>{{localize (concat "shadowrun6.npc.subtype." type)}}</option>
					{{/each}}
				{{/select}}
			</select>
      {{/if}}
    </span>
  </div>
  {{#if system.editmode}}
    {{> "systems/shadowrun-de/templates/parts/npc_full_edit_sheet.html" }}
  {{else}}
		{{> "systems/shadowrun-de/templates/parts/npc_usage_sheet.html" }}
  {{/if}}
</form>