<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>

  {{! Navigation des onglets }}
  <nav class="sheet-tabs tabs" data-group="primary">
    <a class="item {{tabs.details.cssClass}}" data-tab="details">{{localize
        "PRISMRPG.Label.details"
      }}</a>
    <a
      class="item {{tabs.description.cssClass}}"
      data-tab="description"
    >{{localize "PRISMRPG.Label.description"}}</a>
    <a class="item {{tabs.effects.cssClass}}" data-tab="effects">{{localize
        "PRISMRPG.Label.effects"
      }}</a>
  </nav>

  {{! Onglet Details }}
  <div
    class="tab {{tabs.details.cssClass}}"
    data-group="primary"
    data-tab="details"
  >
    <div class="flexrow">
      <div class="align-top">

        {{! Prism RPG: Shield Type (Buckler/Light/Heavy/Tower) }}
        {{formField
          systemFields.shieldType
          value=system.shieldType
          localize=true
          label="PRISMRPG.Label.shieldType"
        }}

        {{! Prism RPG: Block APC (Action Point Cost) }}
        {{formField
          systemFields.apc
          value=system.apc
          localize=true
          label="PRISMRPG.Label.blockAPC"
        }}

        {{! Prism RPG: Shield Rating (SR) }}
        {{formField
          systemFields.sr
          value=system.sr
          localize=true
          label="PRISMRPG.Label.shieldRating"
        }}

        {{formField
          systemFields.equipped
          value=system.equipped
          localize=true
          label="PRISMRPG.Label.equipped"
        }}

      </div>

      <div class="align-top">

        {{formField
          systemFields.quantity
          value=system.quantity
          localize=true
          label="PRISMRPG.Label.quantity"
        }}

        {{formField
          systemFields.encLoad
          value=system.encLoad
          localize=true
          label="PRISMRPG.Label.encumbranceLoad"
        }}

        {{formField
          systemFields.cost
          value=system.cost
          localize=true
          label="PRISMRPG.Label.cost"
        }}
        {{formField
          systemFields.money
          value=system.money
          localize=true
          label="PRISMRPG.Label.currency"
        }}

      </div>
    </div>

    {{! Prism RPG: Block Augment }}
    <fieldset class="shield-block-augment">
      <legend>{{localize "PRISMRPG.Label.blockAugment"}}</legend>
      {{formField
        systemFields.blockAugment
        value=system.blockAugment
        localize=true
        label="PRISMRPG.Label.blockAugmentName"
      }}
      <label>{{localize "PRISMRPG.Label.blockAugmentDescription"}}</label>
      {{formInput
        systemFields.blockAugmentDescription
        enriched=enrichedBlockAugmentDescription
        value=system.blockAugmentDescription
        name="system.blockAugmentDescription"
        toggled=true
      }}
    </fieldset>
  </div>

  {{! Onglet Description }}
  <div
    class="tab {{tabs.description.cssClass}}"
    data-group="primary"
    data-tab="description"
  >
    <fieldset>
      <legend>{{localize "PRISMRPG.Label.description"}}</legend>
      {{formInput
        systemFields.description
        enriched=enrichedDescription
        value=system.description
        name="system.description"
        toggled=true
      }}
    </fieldset>
  </div>

  {{! Onglet Effects }}
  <div
    class="tab {{tabs.effects.cssClass}}"
    data-group="primary"
    data-tab="effects"
  >
    {{> systems/fvtt-prism-rpg/templates/partial-item-effects.hbs}}
  </div>

</section>