<section>
  <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="flexrow">
    <div class="align-top">

      {{formField systemFields.weaponType value=system.weaponType localize=true}}
      {{formField systemFields.weaponClass value=system.weaponClass localize=true}}
      
      <label>{{localize "LETHALFANTASY.Label.damageType"}}</label>
      <div class="shift-right">
        {{formField systemFields.damageType.fields.typeP value=system.damageType.typeP}}
        {{formField systemFields.damageType.fields.typeB value=system.damageType.typeB}}
        {{formField systemFields.damageType.fields.typeS value=system.damageType.typeS}}
      </div>

      {{formField systemFields.damage.fields.damageM value=system.damage.damageM label=(localize "LETHALFANTASY.Label.damage")}}

      {{formField systemFields.applyStrengthDamageBonus value=system.applyStrengthDamageBonus localize=true}}
    
      {{formField systemFields.hands value=system.hands localize=true}}

      {{#if (eq system.weaponType "melee")}}
        {{formField systemFields.isAgile value=system.isAgile localize=true}}
        {{formField systemFields.defenseMax value=system.defenseMax}}
        {{formField systemFields.combatProgressionDice value=system.combatProgressionDice}}
       {{/if}}

      {{#if (eq system.weaponType "ranged")}}
        <label>{{localize "LETHALFANTASY.Label.speed"}}</label>
        <div class="shift-right">
          {{formField systemFields.speed.fields.simpleAim value=system.speed.simpleAim}}
          {{formField systemFields.speed.fields.carefulAim value=system.speed.carefulAim}}
          {{formField systemFields.speed.fields.focusedAim value=system.speed.focusedAim}}
        </div>
      {{/if}}
    </div>
    <div class="align-top">
      {{#if (eq system.weaponType "ranged")}}

        {{formField systemFields.defense value=system.defense}}

        <label>{{localize "LETHALFANTASY.Label.range"}}</label>
        <div class="shift-right">
          {{formField systemFields.weaponRange.fields.pointBlank value=system.weaponRange.pointBlank}}
          {{formField systemFields.weaponRange.fields.short value=system.weaponRange.short}}
          {{formField systemFields.weaponRange.fields.medium value=system.weaponRange.medium}}
          {{formField systemFields.weaponRange.fields.long value=system.weaponRange.long}}
          {{formField systemFields.weaponRange.fields.extreme value=system.weaponRange.extreme}}
          {{formField systemFields.weaponRange.fields.outOfSkill value=system.weaponRange.outOfSkill}}
        </div>
      {{/if}}

      {{formField systemFields.equipped value=system.equipped}}

      <label>{{localize "LETHALFANTASY.Label.bonuses"}}</label>
      <div class="shift-right">
        {{formField systemFields.bonuses.fields.attackBonus value=system.bonuses.attackBonus}}
        {{formField systemFields.bonuses.fields.defenseBonus value=system.bonuses.defenseBonus}}
        {{formField systemFields.bonuses.fields.damageBonus value=system.bonuses.damageBonus}}
      </div>

      {{formField systemFields.encLoad value=system.encLoad}}

      {{formField systemFields.cost value=system.cost}}
      {{formField systemFields.money value=system.money localize=true}}
    </div>
  </div>

  <fieldset>
    <legend>{{localize "LETHALFANTASY.Label.description"}}</legend>
    {{formInput
    systemFields.description
    enriched=enrichedDescription
    value=system.description
    name="system.description"
    toggled=true
    }}
  </fieldset>
</section>