<form class="{{cssClass}}" autocomplete="off">

  {{!-- Sheet Header --}}
  <header class="sheet-header">
    <div class="header-fields">
      <div class="flexrow">

        <img class="profile-img" src="{{img}}" data-edit="img" title="{{name}}" />

        <div class="fixed-separator">
          &nbsp;
        </div>

        <div class="flexcol">
          <h1 class="charname "><input name="name" type="text" value="{{name}}" placeholder="Name" /></h1>

          <div class="flexrow">
            <ul class="item-list alternate-list">
              <li class="item flexrow">
                <label class="item-field-label-medium">Alternate IDs</label>
                <input type="text" class="item-field-label-long4" name="system.biodata.alternateids"
                  value="{{system.biodata.origin}}" data-dtype="String" />
              </li>
            </ul>
          </div>

          <div class="grid grid-2col">
            <div>
              <ul class="item-list alternate-list">
                <li class="flexrow item">
                  <label class="item-field-label-medium">Campaign</label>
                  <input type="text" class="item-field-label-long3" name="system.biodata.campaign"
                    value="{{system.biodata.campaign}}" data-dtype="String" />
                </li>
                <li class="flexrow item">
                  <label class="item-field-label-medium">Player</label>
                  <input type="text" class="item-field-label-long3" name="system.biodata.player"
                    value="{{system.biodata.player}}" data-dtype="String" />
                </li>
                <li class="flexrow item">
                  <label class="item-field-label-medium">GM</label>
                  <input type="text" class="item-field-label-long3" name="system.biodata.gm"
                    value="{{system.biodata.gm}}" data-dtype="String" />
                </li>
                <li class="item flexrow">
                  <label class="item-field-label-medium">Hair</label>
                  <input type="text" class="item-field-label-long3" name="system.biodata.hair"
                    value="{{system.biodata.hair}}" data-dtype="String" />
                </li>
              </ul>
            </div>
            <div>
              <ul class="item-list alternate-list">
                <li class="flexrow item">
                  <label class="item-field-label-medium">Gender</label>
                  <input type="text" class="item-field-label-medium" name="system.biodata.gender"
                    value="{{system.biodata.gender}}" data-dtype="String" />
                </li>
                <li class="item flexrow">
                  <label class="item-field-label-medium">Height</label>
                  <input type="text" class="item-field-label-medium" name="system.biodata.height"
                    value="{{system.biodata.height}}" data-dtype="String" />
                </li>
                <li class="item flexrow">
                  <label class="item-field-label-medium">Mass</label>
                  <input type="text" class="item-field-label-medium" name="system.biodata.mass"
                    value="{{system.biodata.mass}}" data-dtype="String" />
                </li>
                <li class="item flexrow">
                  <label class="item-field-label-medium">Eyes</label>
                  <input type="text" class="item-field-label-medium" name="system.biodata.eyes"
                    value="{{system.biodata.eyes}}" data-dtype="String" />
                </li>
              </ul>
            </div>
          </div>

          <div class="flexrow">
            <ul class="item-list alternate-list">
              <li class="item flexrow">
                <label class="item-field-label-medium">Points</label>
                <input type="text" class="item-field-label-short" name="system.biodata.points"
                  value="{{system.biodata.origin}}" data-dtype="Number" />
                <label class="">&nbsp;</label>

                <label class="item-field-label-medium">Complications</label>
                <input type="text" class="item-field-label-short" name="system.biodata.complications"
                  value="{{system.biodata.complications}}" data-dtype="Number" />
                <label class="">&nbsp;</label>

                <label class="item-field-label-medium">XP Earned</label>
                <input type="text" class="item-field-label-short" name="system.biodata.xpearned"
                  value="{{system.biodata.xpearned}}" data-dtype="Number" />
                <label class="">&nbsp;</label>

                <label class="item-field-label-medium">XP Spent</label>
                <input type="text" class="item-field-label-short" name="system.biodata.xpspent"
                  value="{{system.biodata.xpspent}}" data-dtype="Number" />
                <label class="">&nbsp;</label>
              </li>
            </ul>
          </div>

        </div>
      </div>
    </div>
  </header>

  {{!-- Sheet Tab Navigation --}}
  <nav class="sheet-tabs tabs" data-group="primary">
    <a class="" data-tab="combat">Combat</a>
    <a class="" data-tab="biodata">Background</a>
    <a class="" data-tab="char">Characteristics</a>
    <a class="" data-tab="skills">Skills</a>
    <a class="" data-tab="perks">Perks</a>
    <a class="" data-tab="talents">Talents</a>
    <a class="" data-tab="maneuver">Maneuvers</a>
    <a class="" data-tab="powers">Powers</a>
    <a class="" data-tab="complications">Complications</a>
    <a class="" data-tab="equipment">Equipment</a>
    <a class="" data-tab="notes">Notes</a>
  </nav>

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


    {{!-- Combat Tab --}}
    <div class="tab combat" data-group="primary" data-tab="combat">

      <div class="grid grid2col">
        <div>
          <ul class="item-list alternate-list">
            <li class="item">
              <label class="item-field-label-medium">STR Dice</label>
              <a class="roll-lift-dice"><i class="fas fa-dice"></i>{{characteristics.str.strdice}}</a>
              <label class="item-field-label-short">&nbsp;</label>

              <label class="item-field-label-medium">Lift</label>
              <input type="text" class="item-field-label-short update-field" disabled
                data-field-name="system.characteristics.str.lift" value="{{characteristics.str.lift}}"
                data-dtype="String" />
              <label class="item-field-label-short">&nbsp;</label>
              <label class="item-field-label-medium">STR END</label>
              <input type="text" class="item-field-label-short update-field"
                data-field-name="system.characteristics.str.strend" disabled value="{{characteristics.str.strend}}"
                data-dtype="Number" />

            </li>
          </ul>

          {{#each maneuvers as |mlist key|}}
          <ul class="stat-list alternate-list">
            <li class="item flexrow list-item items-title-bg">
              <span class="item-field-label-long-img">
                <label class="">{{upperFirst key}} Maneuver</label>
              </span>
              <span class="item-field-label-very-short">
                <label class="short-label">PHA</label>
              </span>
              <span class="item-field-label-very-short">
                <label class="short-label">OCV</label>
              </span>
              <span class="item-field-label-very-short">
                <label class="short-label">DCV</label>
              </span>
              <span class="item-field-text-long">
                <label class="short-label">Effects</label>
              </span>
            </li>
            {{#each mlist as |maneuver key|}}
            <li class="item flexrow list-item list-item-shadow " data-item-id="{{maneuver._id}}">
              <a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
                  src="{{maneuver.img}}" /></a>
              <a class="roll-item"><i class="fas fa-dice"></i></a><span class="item-field-label-long">{{maneuver.name}}
              </span>

              <span class="item-field-label-very-short content-center">{{maneuver.system.pha}}</span>
              <span class="item-field-label-very-short content-center">{{maneuver.system.ocv}}</span>
              <span class="item-field-label-very-short content-center">{{maneuver.system.dcv}}</span>

              <span class="item-field-text-long">{{maneuver.system.effects}}
                {{#if maneuver.system.haseffectroll}}
                <a class="roll-direct" data-roll-source="Maneuver {{maneuver.name}}"
                  data-roll-formula="{{maneuver.system.effectrollformula}}">
                  <i class="fas fa-dice"></i>{{maneuver.system.effectrollformula}}
                </a>
                {{/if}}
              </span>

            </li>
            {{/each}}
          </ul>
          {{/each}}
        </div>

        <div>
          <ul class="item-list alternate-list">
            <li class="flexrow item">

              <label class="item-packed">Initiative</label>
              <input type="text" class="margin-left-4item-packed item-field-label-very-short update-field"
                data-field-name="system.characteristics.dex.initiative" value="{{characteristics.dex.initiative}}"
                data-dtype="Number" />

              <label class="items-title-text item-packed margin-left-8">SPD</label>
              <input type="text" class="item-field-label-very-short margin-left-4 update-field item-packed"
                data-field-name="system.characteristics.spd.value" value="{{characteristics.spd.value}}"
                data-dtype="Number" />

              <button class="chat-card-small-button item-field-label-short margin-left-8 hold-action item-packed">{{#if
                isHold}}Unhold{{else}}Hold{{/if}}</button>
              <button class="chat-card-small-button item-field-label-short margin-left-4 abort-action item-packed">{{#if
                isAbort}}Unabort{{else}}Abort{{/if}}</button>

              <label class="items-title-text margin-left-8">Presence attack</label>
              <a class="roll-direct" data-roll-source="Presence attack"
                data-roll-formula="{{system.biodata.presenceattack.rollFormula}}">
                <i class="fas fa-dice"></i>{{system.biodata.presenceattack.displayFormula}}
              </a>

            </li>
          </ul>

          <div class="grid grid2col">
            <div>
              <ul class="stat-list alternate-list">
                <li class="item flexrow list-item items-title-bg">
                  <span class="item-field-label-long">
                    <label class="">Vitals</label>
                  </span>
                  <span class="item-field-label-short">
                    <label class="short-label">Val</label>
                  </span>
                  <span class="item-field-label-short">
                    <label class="short-label">Dmg</label>
                  </span>
                </li>
                {{#each characteristics as |char key|}}
                {{#if char.isvital}}
                <li class="item flexrow list-item list-item-shadow" data-charac-key="{{key}}">
                  <span class="item-field-label-long">{{char.label}}</span>
                  <input type="text" class="item-field-label-short update-field"
                    data-field-name="system.characteristics.{{key}}.value" value="{{char.value}}" data-dtype="Number" />
                  <input type="text" class="item-field-label-short" name="system.characteristics.{{key}}.damage"
                    value="{{char.damage}}" data-dtype="Number" />
                </li>
                {{/if}}
                {{/each}}
              </ul>

            </div>

            <div>

              <ul class="stat-list alternate-list">
                <li class="item flexrow list-item items-title-bg">
                  <span class="item-field-label-long">
                    <label class="">Defenses</label>
                  </span>
                  <span class="item-field-label-short">
                    <label class="short-label">Normal</label>
                  </span>
                  <span class="item-field-label-short">
                    <label class="short-label">Resistant</label>
                  </span>
                </li>
                {{#each characteristics as |char key|}}
                {{#if char.isdefense}}
                <li class="item flexrow list-item list-item-shadow" data-charac-key="{{key}}">
                  <span class="item-field-label-long">{{char.label}}</span>
                  <input type="text" class="item-field-label-short update-field"
                    data-field-name="system.characteristics.{{key}}.value" value="{{char.value}}" data-dtype="Number" />
                  <input type="text" class="item-field-label-short" name="system.characteristics.{{key}}.resistant"
                    value="{{char.resistant}}" data-dtype="Number" />
                </li>
                {{/if}}
                {{/each}}
                {{#each defenses as |def key|}}
                <li class="item flexrow list-item list-item-shadow" data-defense-key="{{key}}">
                  {{#if def.iseditable}}
                  <input type="text" class="item-field-label-long update-field"
                    data-field-name="system.defenses.{{key}}.label" value="{{def.label}}" data-dtype="String" />
                  {{else}}
                  <span class="item-field-label-long">{{def.label}}</span>
                  {{/if}}
                  <input type="text" class="item-field-label-short update-field"
                    data-field-name="system.defenses.{{key}}.value" value="{{def.value}}" data-dtype="Number" />
                  <input type="text" class="item-field-label-short" name="system.defenses.{{key}}.resistant"
                    value="{{def.resistant}}" data-dtype="Number" />
                </li>
                {{/each}}
              </ul>
            </div>
          </div>

          <div class="item">
            <label class="item-field-label-short">
              <a class="roll-charac" data-charac-key="ocv"><i class="fas fa-dice"></i>OCV</a>
            </label>

            <input type="text" class="item-field-label-short update-field"
              data-field-name="system.characteristics.ocv.value" value="{{characteristics.ocv.value}}"
              data-dtype="Number" />
            <label class="item-field-label-short">&nbsp;</label>

            <label class="item-field-label-short">DCV</label>
            <input type="text" class="item-field-label-short update-field"
              data-field-name="system.characteristics.dcv.value" value="{{characteristics.dcv.value}}"
              data-dtype="Number" />
            <label class="item-field-label-short">&nbsp;</label>

            <label class="item-field-label-short">
              <a class="roll-charac" data-charac-key="omcv"><i class="fas fa-dice"></i>OMCV</a>
            </label>
            <input type="text" class="item-field-label-short update-field"
              data-field-name="system.characteristics.omcv.value" value="{{characteristics.omcv.value}}"
              data-dtype="Number" />
            <label class="item-field-label-short">&nbsp;</label>

            <label class="item-field-label-short">DMCV</label>
            <input type="text" class="item-field-label-short update-field"
              data-field-name="system.characteristics.dmcv.value" value="{{characteristics.dmcv.value}}"
              data-dtype="Number" />
          </div>

          <div class="flexrow">
            <label class="item-field-label-long">Combat Skill Levels</label>
            <textarea rows="4" type="text" class="padd-right" name="system.biodata.combatskills"
              data-dtype="String">{{system.biodata.combatskills}}</textarea>
          </div>

          <div class="grid grid2col">
            <div>
              <ul class="stat-list alternate-list">
                <li class="item flexrow list-item items-title-bg">
                  <span class="item-field-label-long">
                    <label class="">Senses</label>
                  </span>
                  <span class="item-field-label-short">
                  </span>
                </li>
                <li class="item flexrow list-item list-item-shadow" data-charac-key="{{key}}">
                  <span class="item-field-label-long">
                    <a class="roll-perception"><i class="fas fa-dice"></i>Perception Roll</a>
                  </span>
                  <input type="text" class="item-field-label-short update-field"
                    data-field-name="system.characteristics.int.perceptionroll"
                    value="{{characteristics.int.perceptionroll}}" data-dtype="Number" />
                </li>
              </ul>
              <textarea rows="20" type="text" class="textarea-full-height padd-right" name="system.biodata.combatnotes1"
                data-dtype="String">{{system.biodata.combatnotes1}}</textarea>
            </div>

            <div>
              <ul class="stat-list alternate-list">
                <li class="item flexrow list-item items-title-bg">
                  <span class="item-field-label-long">
                    <label class="">Movement</label>
                  </span>
                  <span class="item-field-label-short">
                    <label class="short-label">Combat</label>
                  </span>
                  <span class="item-field-label-short">
                    <label class="short-label">NC</label>
                  </span>
                </li>
                {{#each characteristics as |char key|}}
                {{#if char.ismovement}}
                <li class="item flexrow list-item list-item-shadow" data-charac-key="{{key}}">
                  <span class="item-field-label-long">{{char.label}}</span>
                  <input type="text" class="item-field-label-short update-field"
                    data-field-name="system.characteristics.{{key}}.value" value="{{char.value}}" data-dtype="Number" />
                  <input type="text" class="item-field-label-short update-field"
                    data-field-name="system.characteristics.{{key}}.ncvalue" value="{{char.ncvalue}}"
                    data-dtype="Number" />
                </li>
                {{/if}}
                {{/each}}
                {{#each movements as |move key|}}
                <li class="item flexrow list-item list-item-shadow" data-charac-key="{{key}}">
                  {{#if move.iseditable}}
                  <input type="text" class="item-field-label-long update-field"
                    data-field-name="system.movements.{{key}}.label" value="{{move.label}}" data-dtype="String" />
                  {{else}}
                  <span class="item-field-label-long">{{move.label}}</span>
                  {{/if}}
                  <input type="text" class="item-field-label-short update-field"
                    data-field-name="system.movements.{{key}}.value" value="{{move.value}}" data-dtype="Number" />
                  <input type="text" class="item-field-label-short" value="{{mul move.value 2}}" disabled
                    data-dtype="Number" />
                </li>
                {{/each}}
              </ul>

            </div>
          </div>
        </div>

      </div>
    </div>

    {{!-- Char Tab --}}
    <div class="tab char" data-group="primary" data-tab="char">

      <div class="charac-item">
        <ul>
          <li class="item flexrow list-item items-title-bg">
            <span class="item-field-label-medium">
              <label class="">Value</label>
            </span>
            <span class="item-field-label-medium">
              <label class="item-field-label-medium">CHAR</label>
            </span>
            <span class="item-field-label-short">
              <label class="short-label">Base</label>
            </span>
            <span class="item-field-label-short">
              <label class="short-label">Roll</label>
            </span>
            <span class="item-field-label-long">
              <label class="short-label">Notes</label>
            </span>
            <div class="item-filler">&nbsp;</div>
          </li>

          {{#each characteristics as |charac key|}}
          {{> systems/fvtt-hero-system-6/templates/partials/partial-actor-full-charac.hbs charac=charac key=key}}
          {{/each}}
        </ul>
      </div>

    </div>

    {{!-- Skills Tab --}}
    <div class="tab skills" data-group="primary" data-tab="skills">

      <ul class="stat-list alternate-list item-list">
        <li class="item flexrow list-item items-title-bg">
          <span class="item-field-label-long-img">
            <label class="">Skills</label>
          </span>
          <span class="item-field-label-long">
            <label class="short-label">CHAR</label>
          </span>
          <span class="item-field-label-short">
            <label class="short-label">Roll</label>
          </span>
          <div class="item-filler">&nbsp;</div>
        </li>
        {{#each skills as |skill key|}}
        <li class="item stat flexrow list-item list-item-shadow" data-item-id="{{skill._id}}">
          <a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
              src="{{skill.img}}" /></a>
          <span class="item-field-label-long">{{skill.name}}</span>
          <span class="item-field-label-medium">{{upper skill.charac}}</span>
          <span class="item-field-label-short"><a class="roll-item" data-type="skill"><i
                class="fas fa-dice"></i>{{skill.roll}}-</a></span>
          <div class="item-filler">&nbsp;</div>
          <div class="item-controls item-controls-fixed">
            <a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
          </div>
        </li>
        {{/each}}
      </ul>
    </div>

    {{!-- Perks Tab --}}
    <div class="tab perks" data-group="primary" data-tab="perks">

      <ul class="stat-list alternate-list item-list">
        <li class="item flexrow list-item items-title-bg">
          <span class="item-field-label-long-img">
            <label class="">Perks</label>
          </span>
          <span class="item-field-label-short">
            <label class="short-label">Roll</label>
          </span>
        </li>
        {{#each perks as |perk key|}}
        <li class="item stat flexrow list-item list-item-shadow" data-item-id="{{perk._id}}">
          <a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
              src="{{perk.img}}" /></a>
          <span class="item-name-label">{{perk.name}}</span>
          {{#if perk.system.hasroll}}
          <span class="item-field-label-short"><a class="roll-item" data-type="perk"><i
                class="fas fa-dice"></i>{{perk.system.roll}}-</a></span>
          {{else}}
          <span class="item-field-label-short">&nbsp;</span>
          {{/if}}
          <div class="item-filler">&nbsp;</div>
          <div class="item-controls item-controls-fixed">
            <a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
          </div>
        </li>
        {{/each}}
      </ul>
    </div>

    {{!-- Talents Tab --}}
    <div class="tab talents" data-group="primary" data-tab="talents">

      <ul class="stat-list alternate-list item-list">
        <li class="item flexrow list-item items-title-bg">
          <span class="item-field-label-long-img">
            <label class="items-title-text">Talents</label>
          </span>
          <span class="item-field-label-short">
            <label class="short-label">Roll</label>
          </span>
        </li>
        {{#each talents as |talent key|}}
        <li class="item stat flexrow list-item list-item-shadow" data-item-id="{{talent._id}}">
          <a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
              src="{{talent.img}}" /></a>
          <span class="item-name-label">{{talent.name}}</span>
          {{#if talent.system.hasroll}}
          <span class="item-field-label-short"><a class="roll-item" data-type="perk"><i
                class="fas fa-dice"></i>{{talent.system.roll}}-</a></span>
          {{else}}
          <span class="item-field-label-short">&nbsp;</span>
          {{/if}}
          <div class="item-filler">&nbsp;</div>
          <div class="item-controls item-controls-fixed">
            <a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
          </div>
        </li>
        {{/each}}
      </ul>
    </div>

    {{!-- Maneuvers Tab --}}
    <div class="tab maneuver" data-group="primary" data-tab="maneuver">

      <div>
        <button class="show-stock-maneuver">Show/Hide stock maneuvers</button>
      </div>

      <ul class="stat-list alternate-list item-list">
        <li class="item flexrow list-item items-title-bg">
          <span class="item-field-label-long-img">
            <label class="">Maneuvers</label>
          </span>
          <span class="item-field-label-short">
            <label class="short-label">PHA</label>
          </span>
          <span class="item-field-label-short">
            <label class="short-label">OCV</label>
          </span>
          <span class="item-field-label-short">
            <label class="short-label">DCV</label>
          </span>
          <span class="item-field-label-long3">
            <label class="short-label">Effects</label>
          </span>
        </li>
        {{#each allmaneuvers as |maneuver key|}}
        {{#if (ne maneuver.system.maneuvertype "mental")}}
          <div class="{{#if maneuver.system.isstock}}maneuver-list maneuver-is-stock{{/if}}">
            <li class="item stat flexrow list-item list-item-shadow " data-item-id="{{maneuver._id}}">
              <a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
                  src="{{maneuver.img}}" /></a>
              <span class="item-field-label-long">{{maneuver.name}}</span>

              <span class="item-field-label-short">{{maneuver.system.pha}}</span>
              <span class="item-field-label-short">{{maneuver.system.ocv}}</span>
              <span class="item-field-label-short">{{maneuver.system.dcv}}</span>

              <span class="item-field-label-long3">{{maneuver.system.effects}}</span>

              <div class="item-filler">&nbsp;</div>
              <div class="item-controls item-controls-fixed">
                <a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
              </div>
            </li>
          </div>
        {{/if}}
        {{/each}}
      </ul>

      <ul class="stat-list alternate-list item-list">
        <li class="item flexrow list-item items-title-bg">
          <span class="item-field-label-long-img">
            <label class="">Mental Maneuvers</label>
          </span>
          <span class="item-field-label-short">
            <label class="short-label">PHA</label>
          </span>
          <span class="item-field-label-short">
            <label class="short-label">OMCV</label>
          </span>
          <span class="item-field-label-short">
            <label class="short-label">DMCV</label>
          </span>
          <span class="item-field-label-long3">
            <label class="short-label">Effects</label>
          </span>
        </li>
        {{#each allmaneuvers as |maneuver key|}}
        {{#if (eq maneuver.system.maneuvertype "mental")}}
          <div class="">
            <li class="item stat flexrow list-item list-item-shadow " data-item-id="{{maneuver._id}}">
              <a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
                  src="{{maneuver.img}}" /></a>
              <span class="item-field-label-long">
                <a class="roll-mental-maneuver">
                  <i class="fas fa-dice"></i>{{maneuver.name}}
                </a>
              </span>

              <span class="item-field-label-short">{{maneuver.system.pha}}</span>
              <span class="item-field-label-short">{{maneuver.system.omcv}}</span>
              <span class="item-field-label-short">{{maneuver.system.dmcv}}</span>

              <span class="item-field-label-long3">{{maneuver.system.effects}}</span>

              <div class="item-filler">&nbsp;</div>
              <div class="item-controls item-controls-fixed">
                <a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
              </div>
            </li>
          </div>
        {{/if}}
        {{/each}}
      </ul>

    </div>

    {{!-- Powers Tab --}}
    <div class="tab powers" data-group="primary" data-tab="powers">

      <ul class="stat-list alternate-list item-list">
        <li class="item flexrow list-item items-title-bg">
          <span class="item-name-img">
            <label class="">&nbsp;</label>
          </span>
          <span class="item-field-label-short">
            <label class="item-field-label-short">Cost</label>
          </span>
          <span class="item-field-label-long3">
            <label class="item-field-label-long3">Name</label>
          </span>
          <span class="item-field-label-long2">
            <label class="item-field-label-long2">Display</label>
          </span>
          <span class="item-field-label-medium">
            <label class="item-field-label-medium">Effect</label>
          </span>
          <span class="item-field-label-short">
            <label class="item-field-label-short">Roll</label>
          </span>
          <span class="item-field-label-medium">
            <label class="item-field-label-medium">END</label>
          </span>
        </li>
        {{#each powers as |power key|}}
        <li class="item stat flexrow list-item list-item-shadow" data-item-id="{{power._id}}">
          <a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
              src="{{power.img}}" /></a>
          <span class="item-field-label-short">{{power.system.cost}}</span>
          {{#if (eq system.typemodifier "attack")}}
          <span class="item-field-label-long3">
             <a class="roll-power-attack">
              <i class="fas fa-dice"></i>
                {{power.name}}
             </a>
          </span>
          {{else}}
          <span class="item-field-label-long3">{{power.name}}</span>
          {{/if}}
          <span class="item-field-label-long2">{{power.system.displayname}}</span>
          <span class="item-field-label-medium"><a class="roll-damage" data-type="power"><i
                class="fas fa-dice"></i>{{power.system.damage}}</a></span>
          {{#if power.system.hasroll}}
          <span class="item-field-label-short"><a class="roll-item" data-type="power"><i
                class="fas fa-dice"></i>{{power.system.roll}}-</a></span>
          {{else}}
          <span class="item-field-label-short">&nbsp;</span>
          {{/if}}
          <span class="item-field-label-medium">{{power.system.endurance}}</span>
          <div class="item-filler">&nbsp;</div>
          <div class="item-controls item-controls-fixed">
            <a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
          </div>
        </li>
        {{/each}}
      </ul>
    </div>

    {{!-- Complications Tab --}}
    <div class="tab complications" data-group="primary" data-tab="complications">

      <ul class="stat-list alternate-list item-list">
        <li class="item flexrow list-item items-title-bg">
          <span class="item-field-label-long-img">
            <label class="">Complications</label>
          </span>
          <span class="item-field-label-short">
            <label class="short-label">Roll</label>
          </span>
        </li>
        {{#each complications as |comp key|}}
        <li class="item stat flexrow list-item list-item-shadow" data-item-id="{{comp._id}}">
          <a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
              src="{{comp.img}}" /></a>
          <span class="item-name-label">{{comp.name}}</span>
          {{#if comp.system.hasroll}}
          <span class="item-field-label-short"><a class="roll-item" data-type="perk"><i
                class="fas fa-dice"></i>{{comp.system.roll}}-</a></span>
          {{else}}
          <span class="item-field-label-short">&nbsp;</span>
          {{/if}}
          <div class="item-filler">&nbsp;</div>
          <div class="item-controls item-controls-fixed">
            <a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
          </div>
        </li>
        {{/each}}
      </ul>
    </div>

    {{!-- Equipement Tab --}}
    <div class="tab equipment" data-group="primary" data-tab="equipment">

      <div class="flexrow">
        <h3>Encumbrance</h3>
        <span class="small-label">Current : {{encCurrent}}</span>
        <span class="small-label">Capacity : {{encCapacity}}</span>
        <span class="small-label">Total value : {{totalValue}}</span>
      </div>

      {{> systems/fvtt-hero-system-6/templates/partials/partial-actor-equipment-section.hbs title="Money"
      items=moneys}}

      {{> systems/fvtt-hero-system-6/templates/partials/partial-actor-equipment-section.hbs title="Weapons"
      items=weapons}}

      {{> systems/fvtt-hero-system-6/templates/partials/partial-actor-equipment-section.hbs title="Armor" items=armors}}

      {{> systems/fvtt-hero-system-6/templates/partials/partial-actor-equipment-section.hbs title="Shields"
      items=shields}}

      {{> systems/fvtt-hero-system-6/templates/partials/partial-actor-equipment-section.hbs title="Equipment"
      items=equipments}}

      <hr>

    </div>

    {{!-- Biography Tab --}}
    <div class="tab biodata" data-group="primary" data-tab="biodata">
      <div class="flexrow">
        <div class="biodata-portrait">
          <img src="{{img}}">
        </div>
        <div>
          <h3>Background/History : </h3>
          <div class="form-group editor">
            {{editor description target="system.biodata.description" button=true owner=owner
            editable=editable}}
          </div>
        </div>
      </div>
      <hr>
      <h3>Personality/Motivation : </h3>
      <div class="form-group editor">
        {{editor motivation target="system.biodata.motivation" button=true owner=owner
        editable=editable}}
      </div>
      <hr>
      <h3>Quote : </h3>
      <div class="form-group editor">
        {{editor quote target="system.biodata.quote" button=true owner=owner
        editable=editable}}
      </div>
      <h3>Powers/Tactics : </h3>
      <div class="form-group editor">
        {{editor tactics target="system.biodata.tactics" button=true owner=owner
        editable=editable}}
      </div>
      <h3>Campaign Use : </h3>
      <div class="form-group editor">
        {{editor campaignuse target="system.biodata.campaignuse" button=true owner=owner
        editable=editable}}
      </div>
      <h3>Appearance : </h3>
      <div class="form-group editor">
        {{editor appearance target="system.biodata.appearance" button=true owner=owner
        editable=editable}}
      </div>
    </div>

    {{!-- Notes Tab --}}
    <div class="tab notes" data-group="primary" data-tab="notes">
      <h3>Notes 1 : </h3>
      <div class="medium-editor ">
        {{editor notes1 target="system.biodata.notes1" button=true owner=owner
        editable=editable}}
      </div>
      <hr>
      <h3>Notes 2 : </h3>
      <div class="small-editor">
        {{editor notes2 target="system.biodata.notes2" button=true owner=owner
        editable=editable}}
      </div>
      <hr>
      <h3>Notes 3 : </h3>
      <div class="small-editor">
        {{editor notes3 target="system.biodata.notes3" button=true owner=owner
        editable=editable}}
      </div>
      <hr>
      <h3>Notes 4 : </h3>
      <div class="small-editor">
        {{editor notes4 target="system.biodata.notes4" button=true owner=owner
        editable=editable}}
      </div>
      <hr>
      <h3>Notes 5 : </h3>
      <div class="small-editor">
        {{editor notes5 target="system.biodata.notes5" button=true owner=owner
        editable=editable}}
      </div>

    </div>

    </div>

  </section>
</form>