<section class="item-sheet-common">
  <div class="header">
    <img class="item-img" src="{{item.img}}" data-edit="img" data-action="editImage" data-tooltip="{{item.name}}" />
    {{formInput fields.name value=source.name}}
  </div>

  <div class="proficiency-section">
    <fieldset class="proficiency-fieldset">
      <legend>{{localize "OATHHAMMER.Class.FIELDS.armorProficiency.label"}}</legend>
      <div class="proficiency-checkboxes">
        {{#each armorTypeChoices as |label key|}}
          <label class="proficiency-option">
            <input type="checkbox" name="system.armorProficiency"
                   value="{{key}}"
                   {{#if (includes ../system.armorProficiency key)}}checked{{/if}}>
            {{localize label}}
          </label>
        {{/each}}
      </div>
    </fieldset>

    <fieldset class="proficiency-fieldset">
      <legend>{{localize "OATHHAMMER.Class.FIELDS.weaponProficiency.label"}}</legend>
      <div class="proficiency-checkboxes">
        {{#each weaponGroupChoices as |label key|}}
          <label class="proficiency-option">
            <input type="checkbox" name="system.weaponProficiency"
                   value="{{key}}"
                   {{#if (includes ../system.weaponProficiency key)}}checked{{/if}}>
            {{localize label}}
          </label>
        {{/each}}
      </div>
    </fieldset>
  </div>

  <fieldset>
    <legend>{{localize "OATHHAMMER.Label.Description"}}</legend>
    {{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
  </fieldset>
  <fieldset>
    <legend>{{localize "OATHHAMMER.Label.Features"}}</legend>
    {{formInput systemFields.features enriched=enrichedFeatures value=system.features name="system.features" toggled=true}}
  </fieldset>
</section>
