<form class="{{cssClass}}" autocomplete="off">
  <header class="sheet-header">
    <img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}" />
    <div class="header-fields">
      <h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name" /></h1>
    </div>
  </header>

  {{> systems/fvtt-hero-system-6/templates/partials/partial-item-nav.hbs}}

  {{!-- Sheet Body --}}
  <section class="sheet-body">

    {{> systems/fvtt-hero-system-6/templates/partials/partial-item-description.hbs}}

    <div class="tab details" data-group="primary" data-tab="details">
      <ul>

        <li class="flexrow"><label class="item-field-label-long">Equipped ?</label>
          <label class="item-field-label-medium"><input type="checkbox" name="system.equipped" {{checked
              system.equipped}} /></label>
        </li>

        <li class="flexrow"><label class="item-field-label-long">Quantity</label>
          <input type="text" class="item-field-label-short" name="system.quantity" value="{{system.quantity}}"
            data-dtype="Number" />
        </li>

        <li class="flexrow">
          <label class="item-field-label-long">Value</label>
          <input type="text" class="item-field-label-medium input-numeric-short padd-right" name="system.value"
            value="{{system.value}}" data-dtype="Number" />
          &nbsp;
          <label class="item-field-label-long">Total Value</label>
          <label class="item-field-label-long">{{mul system.value system.quantity}}</label>
        </li>

        <li class="flexrow"><label class="item-field-label-long">Weight</label>
          <input type="text" class="item-field-label-medium input-numeric-short padd-right" name="system.weight"
            value="{{system.weight}}" data-dtype="Number" />
          &nbsp;
          <label class="item-field-label-long">Total Weight</label>
          <label class="item-field-label-long">{{mul system.weight system.quantity}}</label>
        </li>

        {{> systems/fvtt-hero-system-6/templates/partials/partial-power-equipment-cost.hbs quantityDone=1}}

        <li class="flexrow"><label class="item-field-label-long">Subtype</label>
          <select class="item-field-label-long" type="text" name="system.subtype" value="{{system.subtype}}"
            data-dtype="String">
            {{#select system.subtype}}
            {{#each config.equipmentSubType as |name key|}}
            <option value="{{key}}">{{name}}</option>
            {{/each}}
            {{/select}}
          </select>
        </li>

        {{#if (eq system.subtype "weapon") }}
        <li class="flexrow"><label class="item-field-label-long">OCV</label>
          <input type="text" class="item-field-label-short" name="system.ocv" value="{{system.ocv}}"
            data-dtype="Number" />
        </li>
        <li class="flexrow"><label class="item-field-label-long">OMCV</label>
          <input type="text" class="item-field-label-short" name="system.omcv" value="{{system.omcv}}"
            data-dtype="Number" />
        </li>
        <li class="flexrow"><label class="item-field-label-long">RMod</label>
          <input type="text" class="item-field-label-short" name="system.rmod" value="{{system.rmod}}"
            data-dtype="Number" />
        </li>
        {{/if}}

        {{#if (eq system.subtype "shield") }}
        <li class="flexrow"><label class="item-field-label-long">OCV</label>
          <input type="text" class="item-field-label-short" name="system.ocv" value="{{system.ocv}}"
            data-dtype="Number" />
        </li>
        <li class="flexrow"><label class="item-field-label-long">DCV</label>
          <input type="text" class="item-field-label-short" name="system.dcv" value="{{system.dcv}}"
            data-dtype="Number" />
        </li>
        <li class="flexrow"><label class="item-field-label-long">OMCV</label>
          <input type="text" class="item-field-label-short" name="system.omcv" value="{{system.omcv}}"
            data-dtype="Number" />
        </li>
        <li class="flexrow"><label class="item-field-label-long">DMCV</label>
          <input type="text" class="item-field-label-short" name="system.dmcv" value="{{system.dmcv}}"
            data-dtype="Number" />
        </li>
        {{/if}}

        {{#if (eq system.subtype "armor") }}
        <li class="flexrow"><label class="item-field-label-long">DCV</label>
          <input type="text" class="item-field-label-short" name="system.dcv" value="{{system.dcv}}"
            data-dtype="Number" />
        </li>
        <li class="flexrow"><label class="item-field-label-long">DMCV</label>
          <input type="text" class="item-field-label-short" name="system.dmcv" value="{{system.dmcv}}"
            data-dtype="Number" />
        </li>
        {{/if}}


        {{#if (or (eq system.subtype "armor") (eq system.subtype "shield")) }}
        <li class="flexrow"><label class="item-field-label-long">PD</label>
          <input type="text" class="item-field-label-short" name="system.pd" value="{{system.pd}}"
            data-dtype="Number" />
        </li>
        <li class="flexrow"><label class="item-field-label-long">ED</label>
          <input type="text" class="item-field-label-short" name="system.ed" value="{{system.ed}}"
            data-dtype="Number" />
        </li>
        <li class="flexrow"><label class="item-field-label-long">rPD</label>
          <input type="text" class="item-field-label-short" name="system.rpd" value="{{system.rpd}}"
            data-dtype="Number" />
        </li>
        <li class="flexrow"><label class="item-field-label-long">rED</label>
          <input type="text" class="item-field-label-short" name="system.red" value="{{system.red}}"
            data-dtype="Number" />
        </li>
        <li class="flexrow"><label class="item-field-label-long">Mental Defense</label>
          <input type="text" class="item-field-label-short" name="system.mentaldefense" value="{{system.mentaldefense}}"
            data-dtype="Number" />
        </li>
        <li class="flexrow"><label class="item-field-label-long">Power Defense</label>
          <input type="text" class="item-field-label-short" name="system.powerdefense" value="{{system.powerdefense}}"
            data-dtype="Number" />
        </li>
        <li class="flexrow"><label class="item-field-label-long">Flash Defense</label>
          <input type="text" class="item-field-label-short" name="system.flashdefense" value="{{system.flashdefense}}"
            data-dtype="Number" />
        </li>
        <li class="flexrow"><label class="item-field-label-long">Other Defense</label>
          <input type="text" class="item-field-label-short" name="system.otherdefense" value="{{system.otherdefense}}"
            data-dtype="Number" />
        </li>
        {{/if}}

        {{> systems/fvtt-hero-system-6/templates/partials/partial-item-hasroll.hbs}}


        {{> systems/fvtt-hero-system-6/templates/partials/partial-item-cost.hbs}}

      </ul>
    </div>

    {{> systems/fvtt-hero-system-6/templates/partials/partial-item-notes.hbs}}

  </section>
</form>