<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="flexcol">
          <h1 class="charname margin-right"><input name="name" type="text" value="{{name}}" placeholder="Name" /></h1>
        </div>
      </div>
    </div>
  </header>

  {{!-- Sheet Tab Navigation --}}
  <nav class="sheet-tabs tabs" data-group="primary">
    <a class="item" data-tab="main">Main</a>
    <a class="item" data-tab="skills">Skills</a>
    <a class="item" data-tab="perks">Perks/Powers/Spells</a>
    <a class="item" data-tab="combat">Combat</a>
    <a class="item" data-tab="equipment">Equipment</a>
    <a class="item" data-tab="biodata">Biography</a>
  </nav>

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

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

      <div class="flexrow">
        <ul class="stat-list alternate-list item-list stat-column-size">
          {{#each system.attributes as |attr key|}}
          <li class="item stat flexrow list-item list-item-shadow">
            <label class="item-field-label-medium">{{attr.label}}</label>
            <input type="text" class="item-field-label-short padd-right" name="system.attributes.{{key}}.value" value="{{attr.value}}" data-dtype="Number"/>
          {{/each}}
          </li>
        </ul>

        <ul class="stat-list alternate-list item-list derivated-column-size">
          {{#each system.derivated as |deriv key|}}
          <li class="item stat flexrow list-item list-item-shadow">
            <label class="item-field-label-medium">{{deriv.label}}</label>
            <label class="item-field-label-short">{{deriv.value}}</label>
            <input type="text" class="item-field-label-short padd-right" name="system.derivated.{{key}}.bonus" value="{{deriv.bonus}}" data-dtype="Number"/>
          {{/each}}
          </li>
        </ul>

        <ul class="stat-list alternate-list item-list">
          {{#each system.secondary as |second key|}}
          <li class="item stat flexrow list-item list-item-shadow">
            <label class="item-field-label-medium">{{second.label}}</label>
            <input type="text" class="item-field-label-short padd-right" name="system.secondary.{{key}}.value" value="{{second.value}}" data-dtype="Number"/>
            {{#if second.maxeditable}}
              <label class="item-field-label-short">&nbsp;/&nbsp;</label>
              <input type="text" class="item-field-label-short padd-right" name="system.secondary.{{key}}.max" value="{{second.max}}" data-dtype="Number"/>
            {{else}}
              <label class="item-field-label-short">&nbsp;/&nbsp;{{second.max}}</label>
            {{/if}}
            <input type="text" class="item-field-label-short padd-right" name="system.secondary.{{key}}.bonus" value="{{second.bonus}}" data-dtype="Number"/>

            {{#if (eq key "hp")}}
            <ul class="stat-list alternate-list item-list hplocation-column">
              <li class="item stat flexrow list-item list-item-shadow">
                <label class="item-field-label-short">Loc.</label>
                <label class="item-field-label-short">Cur</label>
                <label class="item-field-label-short">Max</label>
                <label class="item-field-label-short">Armor</label>
              </li>
              {{#each @root.system.hitlocations as |loc key|}}
              <li class="item stat flexrow list-item list-item-shadow">
                <label class="item-field-label-short">{{loc.label}}</label>
                <input type="text" class="item-field-label-short padd-right" name="system.hitlocations.{{key}}.value" value="{{loc.value}}" data-dtype="Number"/>
                <label class="item-field-label-short">&nbsp;/&nbsp;{{loc.max}}</label>
                <input type="text" class="item-field-label-short padd-right" name="system.hitlocations.{{key}}.armor" value="{{loc.armor}}" data-dtype="Number"/>
              </li>
              {{/each}}
            </ul>
            {{/if}}

          {{/each}}
          </li>
          <li class="item stat flexrow list-item list-item-shadow">
            <label class="item-field-label-medium">Rerolls : </label>
            <input type="text" class="item-field-label-short padd-right" name="system.various.rerolls.value" value="{{system.various.rerolls.value}}" data-dtype="Number"/>
          </li>
        </ul>

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

      <ul class="alternate-list item-list">
        <li class="item flexrow list-item items-title-bg">
          <span class="item-name-label-header-long2">
            <h3><label class="items-title-text">Skills</label></h3>
          </span>
          <span class="item-field-label-medium">
            <label class="short-label">Base</label>
          </span>
          <span class="item-field-label-long">
            <label class="short-label">Derivated</label>
          </span>
          <span class="item-field-label-medium">
            <label class="short-label">Bonus</label>
          </span>
          <span class="item-field-label-medium">
            <label class="short-label">Total</label>
          </span>
          <span class="item-field-label-medium">
            <label class="short-label">Used?</label>
          </span>
          <span class="item-field-label-medium">
            <label class="short-label">&nbsp;</label>
          </span>
        </li>
        {{#each skills as |skill key|}}
        <li class="item 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-vlong2"><i class="fa-solid fa-dice-d10"></i><a class="roll-skill">{{skill.name}}</a></span>
          <span class="item-field-label-medium">{{skill.system.value}}</span>
          <span class="item-field-label-long">{{skill.derivated.label}} ({{skill.derivated.value}})</span>
          <span class="item-field-label-medium">{{skill.system.bonus}}</span>
          <span class="item-field-label-medium">{{skill.total}}%</span>
          <label class="attribute-value checkbox"><input type="checkbox" class="skill-used-id"  {{checked skill.system.used}}/></label>
          <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="alternate-list item-list">
        <li class="item flexrow list-item items-title-bg">
          <span class="item-name-label-header-long2">
            <h3><label class="items-title-text">Perks</label></h3>
          </span>
          <span class="item-field-label-medium">
            <label class="short-label">Type</label>
          </span>

          <div class="item-filler">&nbsp;</div>
          <span class="item-field-label-medium">
            <label class="short-label">&nbsp;</label>
          </span>
        </li>
        {{#each perks as |perk key|}}
        <li class="item 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-field-label-vlong2">{{perk.name}}</span>
          <span class="item-field-label-medium  margin-left-4"><label>{{perk.system.type}}</label></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>

      <ul class="alternate-list item-list">
        <li class="item flexrow list-item items-title-bg">
          <span class="item-name-label-header-long2">
            <h3><label class="items-title-text">Psychic Powers</label></h3>
          </span>
          <span class="item-field-label-medium">
            <label class="short-label">Level</label>
          </span>

          <div class="item-filler">&nbsp;</div>
          <span class="item-field-label-medium">
            <label class="short-label">&nbsp;</label>
          </span>
        </li>
        {{#each powers as |power key|}}
        <li class="item 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-vlong2">{{power.name}}</span>
          <span class="item-field-label-medium  margin-left-4"><label>{{power.system.level}}</label></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>

      <ul class="alternate-list item-list">
        <li class="item flexrow list-item items-title-bg">
          <span class="item-name-label-header-long2">
            <h3><label class="items-title-text">Spells</label></h3>
          </span>
          <span class="item-field-label-medium">
            <label class="short-label">Level</label>
          </span>

          <div class="item-filler">&nbsp;</div>
          <span class="item-field-label-medium">
            <label class="short-label">&nbsp;</label>
          </span>
        </li>
        {{#each spells as |spell key|}}
        <li class="item flexrow list-item list-item-shadow" data-item-id="{{spell._id}}">
          <a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img" src="{{spell.img}}" />
          </a>
          <span class="item-field-label-vlong2">{{spell.name}}</span>
          <span class="item-field-label-medium  margin-left-4"><label>{{spell.system.level}}</label></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>

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

        <div>
          <ul class="stat-list alternate-list">
            <li class="item flexrow list-item items-title-bg">
              <span class="item-name-label-header">
                <h3><label class="items-title-text">Weapons</label></h3>
              </span>
              <span class="item-field-label-medium">
                <label class="short-label">Type</label>
              </span>
              <span class="item-field-label-long">
                <label class="short-label">Skill</label>
              </span>
              <span class="item-field-label-long">
                <label class="short-label">Ammo</label>
              </span>
              <span class="item-field-label-medium   margin-left-4">
                <label class="short-label">Damage</label>
              </span>
              <span class="item-field-label-short">
                <label class="short-label">BR</label>
              </span>
              <span class="item-field-label-medium">
                <label class="short-label">Penetration</label>
              </span>
            </li>
            {{#each equippedWeapons as |weapon key|}}
            <li class="item flexrow list-item list-item-shadow" data-item-id="{{weapon._id}}">
              <a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
                  src="{{weapon.img}}" /></a>
              <span class="item-name-label"><a class ="roll-weapon"><i class="fa-solid fa-dice-d10"></i>{{weapon.name}}</a></span>

              <span class="item-field-label-medium">{{upperFirst weapon.system.weapontype}}</span>

              <span class="item-field-label-long">{{upperFirst weapon.system.skill}}</span>
              
              {{#if weapon.system.needammo}}
                <select class="item-field-label-long edit-weapon-ammo" type="text" data-dtype="String">
                  {{#select system.ammoid}}
                    <option value="">None</option>
                    {{#each @root.ammos as |ammo index|}}
                    <option value="{{ammo._id}}">{{ammo.name}}</option>
                    {{/each}}
                  {{/select}}
                </select>
                {{#if weapon.ammo}}              
                  <span class="item-field-label-medium   margin-left-4"><label>{{weapon.ammo.system.damage}}</label></span>
                {{else}}
                  <span class="item-field-label-medium  margin-left-4"><label>-</label></span>
                {{/if}}
              {{else}}
                <span class="item-field-label-long"><label>N/A</label></span>
                <span class="item-field-label-medium  margin-left-4"><label>{{weapon.system.damage}}</label></span>
              {{/if}}

              <span class="item-field-label-short">{{weapon.system.br}}</span>

              <span class="item-field-label-medium">{{weapon.system.penetrationmin}} - {{weapon.system.penetrationmax}}</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>

      </div>
    </div>


    {{!-- Lore Tab --}}
    <div class="tab lore" data-group="primary" data-tab="lore">

      <div class="flexcol">

        <ul class="stat-list alternate-list">
          <li class="item flexrow list-item items-title-bg">
            <span class="item-name-label-header">
              <h3><label class="items-title-text">Lore</label></h3>
            </span>
            <span class="item-field-label-medium">
              <label class="short-label">Lore</label>
            </span>
            <span class="item-field-label-short">
              <label class="short-label">Circle</label>
            </span>
            <span class="item-field-label-medium">
              <label class="short-label">Range</label>
            </span>
          </li>

          {{#each spells as |spell key|}}
          <li class="item stat flexrow list-item list-item-shadow" data-item-id="{{spell._id}}">
            <a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
                src="{{spell.img}}" /></a>
            <span class="item-name-label">
              <a class="power-roll">{{spell.name}}</a>
            </span>
            <span class="item-field-label-medium">{{spell.system.lore}}</span>
            <span class="item-field-label-short">{{spell.system.circle}}</span>
            <span class="item-field-label-medium">{{spell.system.range}}</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>
    </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>
      </div>

      <ul class="item-list alternate-list">
        <li class="item flexrow list-item items-title-bg">
          <span class="item-name-label-header">
            <h3><label class="items-title-text">Money</label></h3>
          </span>
          <span class="item-field-label-long">
            <label class="short-label">Qty</label>
          </span>
          <span class="item-field-label-medium">
            <label class="short-label">Weight</label>
          </span>
          <span class="item-field-label-medium">
            <label class="short-label">IDR</label>
          </span>
          <div class="item-filler">&nbsp;</div>
          <div class="item-controls item-controls-fixed">
            <a class="item-control item-add" data-type="money" title="Create Item"><i class="fas fa-plus"></i></a>
          </div>
        </li>
        {{#each moneys as |money key|}}
        <li class="item flexrow list-item list-item-shadow" data-item-id="{{money._id}}">
          <a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
              src="{{money.img}}" /></a>
          <span class="item-name-label">{{money.name}}</span>

          <span class="item-field-label-long"><label>
              {{money.system.quantity}}
              (<a class="quantity-minus plus-minus-button"> -</a>/<a class="quantity-plus plus-minus-button">+</a>)
            </label>
          </span>
          <span class="item-field-label-medium">
            <label>{{money.system.weight}}</label>
          </span>
          <span class="item-field-label-medium">
            {{#if money.system.idrDice}}
            <a class="roll-idr" data-dice-value="{{money.data.idrDice}}">{{money.system.idrDice}}</a>
            {{else}}
            &nbsp;-&nbsp;
            {{/if}}
          </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>

      <ul class="item-list alternate-list">
        <li class="item flexrow list-item items-title-bg">
          <span class="item-name-label-header">
            <h3><label class="items-title-text">Weapons</label></h3>
          </span>

          <span class="item-field-label-medium">
            <label class="short-label">Attack</label>
          </span>

          <span class="item-field-label-vlong">
            <label class="short-label">Ammo</label>
          </span>

          <span class="item-field-label-medium">
            <label class="short-label">Damage</label>
          </span>          
          
          <div class="item-filler">&nbsp;</div>
          <div class="item-controls item-controls-fixed">
            <a class="item-control item-add" data-type="weapon" title="Create Item"><i class="fas fa-plus"></i></a>
          </div>
        </li>
        {{#each weapons as |weapon key|}}
        <li class="item flexrow list-item list-item-shadow" data-item-id="{{weapon._id}}">
          <a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
              src="{{weapon.img}}" /></a>
          <span class="item-name-label">{{weapon.name}}</span>

          <span class="item-field-label-medium"><label>{{upperFirst weapon.system.weapontype}}</label></span>

          {{#if weapon.system.needammo}}
            <select class="item-field-label-vlong edit-weapon-ammo" type="text" data-dtype="String">
              {{#select system.ammoid}}
                <option value="">None</option>
                {{#each @root.ammos as |ammo index|}}
                <option value="{{ammo._id}}">{{ammo.name}}</option>
                {{/each}}
              {{/select}}
            </select>
            {{#if weapon.ammo}}              
              <span class="item-field-label-medium"><label>{{weapon.ammo.system.damage}}</label></span>
            {{else}}
              <span class="item-field-label-medium"><label>-</label></span>
            {{/if}}
          {{else}}
            <span class="item-field-label-vlong"><label>N/A</label></span>
            <span class="item-field-label-medium"><label>{{weapon.system.damage}}</label></span>
          {{/if}}

          <div class="item-filler">&nbsp;</div>
          <div class="item-controls item-controls-fixed">
            <a class="item-control item-equip" title="Worn">{{#if weapon.system.equipped}}<i
                class="fas fa-circle"></i>{{else}}<i class="fas fa-genderless"></i>{{/if}}</a>
            <a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
          </div>
        </li>
        {{/each}}
      </ul>

      <ul class="item-list alternate-list">
        <li class="item flexrow list-item items-title-bg">
          <span class="item-name-label-header">
            <h3><label class="items-title-text">Ammos</label></h3>
          </span>
          <span class="item-field-label-short">
            <label class="short-label">Quantity</label>
          </span>
          <span class="item-field-label-short">
            <label class="short-label">Damage</label>
          </span>
          <div class="item-filler">&nbsp;</div>
          <div class="item-controls item-controls-fixed">
            <a class="item-control item-add" data-type="weapon" title="Create Item"><i class="fas fa-plus"></i></a>
          </div>
        </li>
        {{#each ammos as |ammo key|}}
        <li class="item flexrow list-item list-item-shadow" data-item-id="{{ammo._id}}">
          <a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
              src="{{ammo.img}}" /></a>
          <span class="item-name-label">{{ammo.name}}</span>
          <span class="item-field-label-short"><label>{{ammo.system.quantity}}</label></span>
          <span class="item-field-label-short"><label>{{ammo.system.damage}}</label></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>

      <ul class="item-list alternate-list">
        <li class="item flexrow list-item items-title-bg">
          <span class="item-name-label-header">
            <h3><label class="items-title-text">Armors</label></h3>
          </span>
          <span class="item-field-label-medium">
            <label class="short-label">Type</label>
          </span>
          <span class="item-field-label-medium">
            <label class="short-label">Absorption</label>
          </span>

          <div class="item-filler">&nbsp;</div>
          <div class="item-controls item-controls-fixed">
            <a class="item-control item-add" data-type="armor" title="Create Item"><i class="fas fa-plus"></i></a>
          </div>
        </li>
        {{#each armors as |armor key|}}
        <li class="item list-item flexrow list-item-shadow" data-item-id="{{armor._id}}">
          <a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
              src="{{armor.img}}" /></a>
          <span class="item-name-label">{{armor.name}}</span>
          <span class="item-field-label-medium">{{upper armor.system.armortype}}</span>
          <span class="item-field-label-medium">{{armor.system.absorprionroll}}</span>

          <div class="item-filler">&nbsp;</div>
          <div class="item-controls item-controls-fixed">
            <a class="item-control item-equip" title="Worn">{{#if armor.system.equipped}}<i
                class="fas fa-circle"></i>{{else}}<i class="fas fa-genderless"></i>{{/if}}</a>
            <a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
          </div>
        </li>
        {{/each}}
      </ul>

      <ul class="item-list alternate-list">
        <li class="item flexrow list-item items-title-bg">
          <span class="item-name-label-header">
            <h3><label class="items-title-text">Shields</label></h3>
          </span>
          <span class="item-field-label-short">
            <label class="short-label">Dice</label>
          </span>
          <div class="item-filler">&nbsp;</div>
          <div class="item-controls item-controls-fixed">
            <a class="item-control item-add" data-type="shield" title="Create Item"><i class="fas fa-plus"></i></a>
          </div>
        </li>
        {{#each shields as |shield key|}}
        <li class="item flexrow list-item list-item-shadow" data-item-id="{{shield._id}}">
          <a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
              src="{{shield.img}}" /></a>
          <span class="item-name-label">{{shield.name}}</span>
          <span class="item-field-label-short">{{shield.system.levelDice}}</span>

          <div class="item-filler">&nbsp;</div>
          <div class="item-controls item-controls-fixed">
            <a class="item-control item-equip" title="Worn">{{#if shield.system.equipped}}<i
                class="fas fa-circle"></i>{{else}}<i class="fas fa-genderless"></i>{{/if}}</a>
            <a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
          </div>
        </li>
        {{/each}}
      </ul>

      <ul class="item-list alternate-list">
        <li class="item flexrow list-item items-title-bg">
          <span class="item-name-label-header">
            <h3><label class="items-title-text">Cyber</label></h3>
          </span>
          <span class="item-field-label-medium">
            <label class="short-label">Location</label>
          </span>
          <span class="item-field-label-medium">
            <label class="short-label">SP</label>
          </span>
          <span class="item-field-label-medium">
            <label class="short-label">HUP</label>
          </span>
          <div class="item-filler">&nbsp;</div>
          <div class="item-controls item-controls-fixed">
            <a class="item-control item-add" data-type="cyber" title="Create Item"><i class="fas fa-plus"></i></a>
          </div>
        </li>
        {{#each cybers as |cyber key|}}
        <li class="item flexrow list-item list-item-shadow" data-item-id="{{cyber._id}}">
          <a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
              src="{{cyber.img}}" /></a>
          <span class="item-name-label">{{cyber.name}}</span>
          <span class="item-field-label-medium">{{cyber.system.upgradelocation}}</span>
          <span class="item-field-label-medium">{{cyber.system.sp}}</span>
          <span class="item-field-label-medium">{{cyber.system.hup}}</span>
          <div class="item-filler">&nbsp;</div>
          <div class="item-controls item-controls-fixed">
            <a class="item-control item-equip" title="Worn">{{#if cyber.system.equipped}}<i
                class="fas fa-circle"></i>{{else}}<i class="fas fa-genderless"></i>{{/if}}</a>
            <a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
          </div>
        </li>
        {{/each}}
      </ul>

      <ul class="item-list alternate-list">
        <li class="item flexrow list-item items-title-bg">
          <span class="item-name-label-header">
            <h3><label class="items-title-text">Genetics</label></h3>
          </span>
          <span class="item-field-label-medium">
            <label class="short-label">Location</label>
          </span>
          <span class="item-field-label-medium">
            <label class="short-label">SP</label>
          </span>
          <span class="item-field-label-medium">
            <label class="short-label">HUP</label>
          </span>
          <div class="item-filler">&nbsp;</div>
          <div class="item-controls item-controls-fixed">
            <a class="item-control item-add" data-type="genetic" title="Create Item"><i class="fas fa-plus"></i></a>
          </div>
        </li>
        {{#each genetics as |cyber key|}}
        <li class="item flexrow list-item list-item-shadow" data-item-id="{{cyber._id}}">
          <a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
              src="{{cyber.img}}" /></a>
          <span class="item-name-label">{{cyber.name}}</span>
          <span class="item-field-label-medium">{{cyber.system.upgradelocation}}</span>
          <span class="item-field-label-medium">{{cyber.system.sp}}</span>
          <span class="item-field-label-medium">{{cyber.system.hup}}</span>
          <div class="item-filler">&nbsp;</div>
          <div class="item-controls item-controls-fixed">
            <a class="item-control item-equip" title="Worn">{{#if cyber.system.equipped}}<i
                class="fas fa-circle"></i>{{else}}<i class="fas fa-genderless"></i>{{/if}}</a>
            <a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
          </div>
        </li>
        {{/each}}
      </ul>


      <ul class="item-list alternate-list">
        <li class="item flexrow list-item items-title-bg">
          <span class="item-name-label-header">
            <h3><label class="items-title-text">Equipment</label></h3>
          </span>
          <span class="item-field-label-medium">
            <label class="short-label">SP</label>
          </span>
          <span class="item-field-label-medium">
            <label class="short-label">Running Time</label>
          </span>
          <span class="item-field-label-medium">
            <label class="short-label">Quantity</label>
          </span>
          <div class="item-filler">&nbsp;</div>
          <div class="item-controls item-controls-fixed">
            <a class="item-control item-add" data-type="equipment" title="Create Item"><i class="fas fa-plus"></i></a>
          </div>

        </li>
        {{#each equipments as |equip key|}}
        <li class="item flexrow list-item list-item-shadow" data-item-id="{{equip._id}}">
          <a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
              src="{{equip.img}}" /></a>
          <span class="item-name-label">{{equip.name}}</span>
          <span class="item-field-label-medium">{{equip.system.sp}}</span>
          <span class="item-field-label-medium">{{equip.system.runningtime}}</span>
          <span class="item-field-label-medium">{{equip.system.quantity}}</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>

      <hr>

    </div>

    {{!-- Biography Tab --}}
    <div class="tab biodata" data-group="primary" data-tab="biodata">
      <div class="grid grid-2col">
        <div>
          <ul class="item-list alternate-list">
            <li class="item flexrow">
              <label class="generic-label">Origin</label>
              <input type="text" class="" name="system.biodata.origin" value="{{data.biodata.origin}}"
                data-dtype="String" />
            </li>
            <li class="item flexrow">
              <label class="generic-label">Age</label>
              <input type="text" class="" name="system.biodata.age" value="{{data.biodata.age}}" data-dtype="String" />
            </li>
            <li class="item flexrow">
              <label class="generic-label">Height</label>
              <input type="text" class="" name="system.biodata.height" value="{{data.biodata.height}}" data-dtype="String" />
            </li>
            <li class="item flexrow">
              <label class="generic-label">Eyes</label>
              <input type="text" class="" name="system.biodata.eyes" value="{{data.biodata.eyes}}" data-dtype="String" />
            </li>
            <li class="item flexrow">
              <label class="generic-label">Hair</label>
              <input type="text" class="" name="system.biodata.hair" value="{{data.biodata.hair}}" data-dtype="String" />
            </li>
          </ul>
        </div>
       <div>
          <ul>
            <li class="flexrow item">
              <label class="generic-label">Size</label>
              <select class="competence-base flexrow" type="text" name="system.biodata.size" value="{{data.biodata.size}}" data-dtype="Number">
                {{#select data.biodata.size}}
                <option value="1">Tiny</option>
                <option value="2">Small</option>
                <option value="3">Medium</option>
                <option value="4">Large</option>
                <option value="5">Huge</option>
                <option value="6">Gargantuan</option>
                {{/select}}
              </select> 
            </li>
            <li class="flexrow item">
              <label class="generic-label">Sex</label>
              <input type="text" class="" name="system.biodata.sex" value="{{data.biodata.sex}}" data-dtype="String" />
            </li>
            <li class="flexrow item">
              <label class="generic-label">Preferred Hand</label>
              <input type="text" class="" name="system.biodata.preferredhand" value="{{data.biodata.preferredhand}}"
                data-dtype="String" />
            </li>
            <li class="flexrow item" data-item-id="{{race._id}}">
              <label class="generic-label">Race</label>
              <a class="item-edit"><img class="stat-icon" src="{{race.img}}"></a>
              <input type="text" class="" name="system.biodata.racename" value="{{data.biodata.racename}}" data-dtype="String" />
            </li>
          </ul>
        </div>
      </div>


      <hr>
      <h3>Background : </h3>
      <div class="form-group editor">
        {{editor description target="system.biodata.description" button=true owner=owner
        editable=editable}}
      </div>
      <hr>
      <h3>Notes : </h3>
      <div class="form-group editor">
        {{editor notes target="system.biodata.notes" button=true owner=owner editable=editable}}
      </div>
      <hr>
      </article>
    </div>

  </section>
</form>