<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"><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-name-label competence-name item-field-label-short"><strong>{{localize "MNBL.law"}}</strong></label>

                <label class="item-name-label competence-name item-field-label-short">{{localize "MNBL.level"}}</label><input type="text"
                  class="padd-right status-small-label color-class-common item-field-label-short"
                  name="system.balance.loi" value="{{data.balance.loi}}" data-dtype="Number" />

                <label class="item-name-label competence-name item-field-label-short">{{localize "MNBL.points"}}</label>
                <select class="status-small-label color-class-common item-field-label-short" type="text"
                  name="system.balance.pointsloi" value="{{data.balance.pointsloi}}" data-dtype="Number">
                  {{selectOptions @root.config.listeNiveauSkill selected=data.balance.pointsloi}}
                </select>

                <label class="item-name-label competence-name item-field-label-medium">{{localize "MNBL.aspect"}} {{aspect}}</label>
              </li>

              <li class="item flexrow ">
                <label class="item-name-label competence-name item-field-label-short"><strong>{{localize "MNBL.chaos"}}</strong></label>

                <label class="item-name-label competence-name item-field-label-short">{{localize "MNBL.level"}}</label><input type="text"
                  class="padd-right status-small-label color-class-common item-field-label-short"
                  name="system.balance.chaos" value="{{data.balance.chaos}}" data-dtype="Number" />

                <label class="item-name-label competence-name item-field-label-short">{{localize "MNBL.points"}}</label><select
                  class="status-small-label color-class-common item-field-label-short" type="text"
                  name="system.balance.pointschaos" value="{{data.balance.pointschaos}}" data-dtype="Number">
                  {{selectOptions @root.config.listeNiveauSkill selected=data.balance.pointschaos}}
                </select>
                <label class="item-name-label competence-name item-field-label-medium">{{localize "MNBL.margin"}} {{marge}}</label>
              </li>

              <li class="item flexrow ">
                <h4 class="item-name-label competence-name">{{localize "MNBL.goodadventure"}}</h4>
                <label class="item-name-label competence-name item-field-label-short">{{localize "MNBL.base"}}</label>
                <input type="text" class="padd-right status-small-label color-class-common item-field-label-short"
                  name="system.bonneaventure.base" value="{{data.bonneaventure.base}}" data-dtype="Number" />
                <label class="item-name-label competence-name item-field-label-short">{{localize "MNBL.current"}}</label>
                <input type="text" class="padd-right status-small-label color-class-common item-field-label-short"
                  name="system.bonneaventure.actuelle" value="{{data.bonneaventure.actuelle}}" data-dtype="Number" />
              </li>

              <li class="item flexrow ">
                <h4 class="item-name-label competence-name">{{localize "MNBL.alignement"}} {{alignement}}</h4>
                <h4 class="item-name-label competence-name item-field-label-short">{{localize "MNBL.eclat"}}</h4>
                <input type="text" class="padd-right status-small-label color-class-common item-field-label-short"
                  name="system.eclat.value" value="{{data.eclat.value}}" data-dtype="Number" />

                <h4 class="item-name-label competence-name item-field-label-medium">{{localize "MNBL.exp"}}</h4>
                <input type="text" class="padd-right status-small-label color-class-common item-field-label-short"
                  name="system.experience.value" value="{{data.experience.value}}" data-dtype="Number" />

              </li>
            </ul>
          </div>

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

  {{!-- Sheet Tab Navigation --}}
  <nav class="sheet-tabs tabs" data-group="primary">
    <a class="item" data-tab="principal">{{localize "MNBL.attributes"}}</a>
    <a class="item" data-tab="competences">{{localize "MNBL.skills"}}</a>
    <a class="item" data-tab="dons">{{localize "MNBL.abilities"}}</a>
    <a class="item" data-tab="equipement">{{localize "MNBL.equipment"}}</a>
    <a class="item" data-tab="biodata">{{localize "MNBL.bio"}}</a>
  </nav>

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

    {{!-- Main Tab --}}
    <div class="tab principal" data-group="primary" data-tab="principal">

      <div class="grid grid-2col">

        <div class="sheet-box color-bg-archetype">
          <ul class="item-list alternate-list">
            {{#each data.attributs as |attr key|}}
            <li class="item flexrow " data-attr-key="{{key}}">
              <img class="item-name-img" src="systems/fvtt-mournblade/assets/icons/{{attr.labelnorm}}.webp">
              <span class="item-name-label competence-name item-field-label-medium"><a
                  class="roll-attribut">{{localize attr.label}}</a></span>
              <select class="status-small-label color-class-common item-field-label-short" type="text"
                name="system.attributs.{{key}}.value" value="{{attr.value}}" data-dtype="Number">
                {{selectOptions @root.config.listeNiveauSkill selected=attr.value}}
              </select>
            </li>
            {{/each}}
          </ul>

          <h4 class="item-name-label competence-name">{{localize "MNBL.health"}}</h4>
          <ul class="item-list alternate-list">
            <li class="item flexrow">
              <label class="label-name">{{localize "MNBL.bonus"}}</label>
              <input type="text" class="input-numeric-short" name="system.sante.bonus" value="{{data.sante.bonus}}"
                data-dtype="Number" />
              <label class="label-name">Total</label>
              <label class="label-name">{{data.sante.base}}</label>
            </li>
            <li class="item  flexrow">
              <label class="label-name">{{localize "MNBL.nonlethal"}}</label>
              <a class="sante-modify plus-minus-button" data-type="nonletaux" data-value="-1">-</a>
              <input type="text" class="input-numeric-short" name="system.sante.nonletaux"
                value="{{data.sante.nonletaux}}" data-dtype="Number" />
              <a class="sante-modify plus-minus-button" data-type="nonletaux" data-value="+1">+</a>
            </li>
            <li class="item  flexrow">
              <label class="label-name">{{localize "MNBL.lethal"}}</label>
              <a class="sante-modify plus-minus-button" data-type="letaux" data-value="-1">-</a>
              <input type="text" class="input-numeric-short" name="system.sante.letaux" value="{{data.sante.letaux}}"
                data-dtype="Number" />
              <a class="sante-modify plus-minus-button" data-type="letaux" data-value="+1">+</a>
            </li>
            <li class="item flexrow">
              <label class="label-name">{{localize "MNBL.malus"}}</label>
              <input type="text" class="input-numeric-short" name="system.sante.malusmanuel"
                value="{{data.sante.malusmanuel}}" data-dtype="Number" />
              <label class="label-name">{{localize "MNBL.automalus"}}</label>
              <label class="label-name">{{santeMalus}}</label>
            </li>
          </ul>

        </div>

        <div class="sheet-box color-bg-archetype">

          <h4 class="item-name-label competence-name">{{localize "MNBL.soul"}}</h4>
          <ul class="item-list alternate-list">
            <li class="item flexrow">
              <label class="label-name">Max</label>
              <input type="text" class="input-numeric-short" name="system.ame.fullmax" value="{{data.ame.fullmax}}"
                data-dtype="Number" />
              <label class="label-name">{{localize "MNBL.currentmax"}}</label>
              <input type="text" class="input-numeric-short" name="system.ame.currentmax"
                value="{{data.ame.currentmax}}" data-dtype="Number" />
            <li class="item flexrow">
              <label class="label-name">{{localize "MNBL.consumed"}}</label>
              <a class="ame-modify plus-minus-button" data-value="-1">-</a>
              <input type="text" class="input-numeric-short" name="system.ame.value" value="{{data.ame.value}}"
                data-dtype="Number" />
              <a class="ame-modify plus-minus-button" data-value="+1">+</a>
            </li>

            <li class="item flexrow">
              <label class="label-name">{{localize "MNBL.automalus"}}</label>
              <label class="label-name">{{ameMalus}}</label>

            </li>
          </ul>

          <h4 class="item-name-label competence-name">Combat</h4>
          <ul class="item-list alternate-list">
            <li class="item flexrow">
              <label class="competence-name">Initiative</label>
              <label class="competence-name">{{combat.initBase}}</label>
              <input type="text" class="input-numeric-short" name="system.combat.initbonus"
                value="{{data.combat.initbonus}}" data-dtype="Number" />
              <label class="competence-name">{{combat.initTotal}}</label>
            </li>
            <li class="item  flexrow">
              <label class="competence-name">{{localize "MNBL.damagebonus"}}</label>
              <label class="competence-name">+{{combat.bonusDegats}}</label>
              <input type="text" class="input-numeric-short" name="system.combat.bonusdegats"
                value="{{data.combat.bonusdegats}}" data-dtype="Number" />
              <label class="competence-name">+{{combat.bonusDegatsTotal}}</label>
            </li>
            <li class="item  flexrow">
              <label class="competence-name">{{localize "MNBL.speed"}}</label>
              <label class="competence-name">{{combat.vitesseBase}}</label>
              <input type="text" class="input-numeric-short" name="system.combat.vitessebonus"
                value="{{data.combat.vitessebonus}}" data-dtype="Number" />
              <label class="competence-name">{{combat.vitesseTotal}}</label>
            </li>
            <li class="item  flexrow">
              <label class="competence-name">{{localize "MNBL.defense"}}</label>
              <label class="competence-name">{{combat.defenseBase}}</label>
              <input type="text" class="input-numeric-short" name="system.combat.defensebonus"
                value="{{data.combat.defensebonus}}" data-dtype="Number" />
              <label class="competence-name">{{combat.defenseTotal}}</label>
            </li>
            <li class="item  flexrow">
              <label class="competence-name">{{localize "MNBL.totalprotection"}}</label>
              <label class="competence-name">{{protectionTotal}}</label>
            </li>
          </ul>
        </div>

      </div>

      <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">{{localize "MNBL.modifier"}}</label></h3>
            </span>
            <span class="item-field-label-short">
              <label class="short-label">{{localize "MNBL.type"}}</label>
            </span>
            <span class="item-field-label-short">
              <label class="short-label">{{localize "MNBL.value"}}</label>
            </span>
            <div class="item-filler">&nbsp;</div>
            <div class="item-controls item-controls-fixed">
            </div>
          </li>
          {{#each modifiers as |modifier key|}}
          <li class="item flexrow " data-item-id="{{modifier._id}}" data-item-type="modifier">
            <img class="item-name-img" src="{{modifier.img}}" />
            <span class="item-name-label competence-name">{{modifier.name}}</span>
            <span class="item-field-label-short">{{upperFirst modifier.system.modifiertype}}</span>
            <span class="item-field-label-short">{{modifier.system.value}}</span>
            <div class="item-filler">&nbsp;</div>
            <div class="item-controls item-controls-fixed">
              <a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
              <a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
            </div>
          </li>
          {{/each}}
        </ul>
      </div>

    </div>

    {{!-- Competence Tab --}}
    <div class="tab competences" data-group="primary" data-tab="competences">

      <div class="flexrow">

        <div class="sheet-box color-bg-archetype">
          <ul class="item-list alternate-list">
            <li class="item flexrow">
              <span class="item-name-label-header">
                <h3><label class="items-title-text">{{localize "MNBL.skills"}}</label></h3>
              </span>
              <span class="item-field-label-short">
                <label class="short-label">{{localize "MNBL.level"}}</label>
              </span>
              <div class="item-filler">&nbsp;</div>
            </li>
            {{#each skills as |skill key|}}
            <li class="item flexrow " data-item-id="{{skill._id}}" data-item-type="competence">
              <img class="item-name-img" src="{{skill.img}}" />
              <div class="flexcol item-name-label">

                <span class="item-name-label competence-name"><a class="roll-competence"
                    data-attr-key="tochoose">{{skill.name}}</a></span>

                <span class="predilection-text">
                  {{#each skill.system.predilections as |pred key|}}
                  {{pred.name}},
                  {{/each}}
                </span>
              </div>
              <select class="status-small-label color-class-common edit-item-data competence-niveau" type="text"
                data-item-field="niveau" data-dtype="Number">
                {{selectOptions @root.config.listeNiveauSkill selected=skill.system.niveau}}
              </select>

              {{#if (ne skill.system.attribut1 "none")}}
              <span class="item-field-label-short">
                <button class="roll-competence button-sheet-roll" data-attr-key="{{skill.system.attribut1}}">{{upper
                  skill.system.attribut1}} : {{skill.system.attribut1total}}</button>
              </span>
              {{/if}}
              {{#if (ne skill.system.attribut2 "none")}}
              <span class="item-field-label-short">
                <button class="roll-competence button-sheet-roll" data-attr-key="{{skill.system.attribut2}}">{{upper
                  skill.system.attribut2}} : {{skill.system.attribut2total}}</button>
              </span>
              {{/if}}
              {{#if (ne skill.system.attribut3 "none")}}
              <span class="item-field-label-short">
                <button class="roll-competence button-sheet-roll" data-attr-key="{{skill.system.attribut3}}">{{upper
                  skill.system.attribut3}} : {{skill.system.attribut3total}}</button>
              </span>
              {{/if}}

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

      </div>

    </div>

    {{!-- Dons/Pactes Tab --}}
    <div class="tab dons" data-group="primary" data-tab="dons">

      <div class="flexcol">

        <div class="sheet-box color-bg-archetype">
          <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">{{localize "MNBL.gifts"}}</label></h3>
              </span>
              <span class="item-field-label-short">
                <label class="short-label">{{localize "MNBL.allegiance"}}</label>
              </span>
              <div class="item-filler">&nbsp;</div>
              <div class="item-controls item-controls-fixed">
              </div>
            </li>
            {{#each dons as |don key|}}
            <li class="item flexrow " data-item-id="{{don._id}}" data-item-type="don">
              <img class="item-name-img" src="{{don.img}}" />
              <span class="item-name-label competence-name">{{don.name}}</span>
              <span class="item-field-label-short">{{don.system.allegeance}}</span>
              <div class="item-filler">&nbsp;</div>
              <div class="item-controls item-controls-fixed">
                <a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
                <a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
              </div>
            </li>
            {{/each}}
          </ul>
        </div>

        <div class="sheet-box color-bg-archetype">
          <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">{{localize "MNBL.pacts"}}</label></h3>
              </span>
              <span class="item-field-label-short">
                <label class="short-label">{{localize "MNBL.allegiance"}}</label>
              </span>
              <div class="item-filler">&nbsp;</div>
              <div class="item-controls item-controls-fixed">
              </div>
            </li>
            {{#each pactes as |pacte key|}}
            <li class="item flexrow " data-item-id="{{pacte._id}}" data-item-type="pacte">
              <img class="item-name-img" src="{{pacte.img}}" />
              <span class="item-name-label competence-name">{{pacte.name}}</span>
              <span class="item-field-label-short">{{pacte.system.allegeance}}</span>
              <div class="item-filler">&nbsp;</div>
              <div class="item-controls item-controls-fixed">
                <a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
                <a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
              </div>
            </li>
            {{/each}}
          </ul>
        </div>

        <div class="sheet-box color-bg-archetype">
          <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">{{localize "MNBL.runes"}}</label></h3>
              </span>
              <span class="item-field-label-long">
                <label class="short-label">{{localize "MNBL.highlanguage"}}</label>
              </span>
              <span class="item-field-label-short">
                <label class="short-label">{{localize "MNBL.difficulty"}}</label>
              </span>
              <div class="item-filler">&nbsp;</div>
              <div class="item-controls item-controls-fixed">
              </div>
            </li>
            {{#each runes as |rune key|}}
            <li class="item flexrow " data-item-id="{{rune._id}}" data-item-type="rune">
              <img class="item-name-img" src="{{rune.img}}" />
              <span class="item-name-label competence-name"><a class="roll-rune">{{rune.name}}</a></span>
              <span class="item-field-label-long">{{rune.system.formule}}</span>
              <span class="item-field-label-short">{{rune.system.seuil}}</span>
              <div class="item-filler">&nbsp;</div>
              <div class="item-controls item-controls-fixed">
                <a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
                <a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
              </div>
            </li>
            {{/each}}
          </ul>
        </div>


        <div class="sheet-box color-bg-archetype">
          <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">{{localize "MNBL.tendancies"}}</label></h3>
              </span>
              <span class="item-field-label-short">
                <label class="short-label">{{localize "MNBL.allegiance"}}</label>
              </span>
              <div class="item-filler">&nbsp;</div>
              <div class="item-controls item-controls-fixed">
              </div>
            </li>
            {{#each tendances as |tendance key|}}
            <li class="item flexrow " data-item-id="{{tendance._id}}" data-item-type="tendance">
              <img class="item-name-img" src="{{tendance.img}}" />
              <span class="item-name-label competence-name">{{tendance.name}}</span>
              <span class="item-field-label-short">{{tendance.system.allegeance}}</span>
              <div class="item-filler">&nbsp;</div>
              <div class="item-controls item-controls-fixed">
                <a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
                <a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
              </div>
            </li>
            {{/each}}
          </ul>
        </div>

        <div class="sheet-box color-bg-archetype">
          <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">{{localize "MNBL.chaotictraits"}}</label></h3>
              </span>
              <div class="item-filler">&nbsp;</div>
              <div class="item-controls item-controls-fixed">
              </div>
            </li>
            {{#each traitsChaotiques as |trait key|}}
            <li class="item flexrow " data-item-id="{{trait._id}}" data-item-type="traitchaotique">
              <img class="item-name-img" src="{{trait.img}}" />
              <span class="item-name-label competence-name">{{trait.name}}</span>
              <div class="item-filler">&nbsp;</div>
              <div class="item-controls item-controls-fixed">
                <a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
                <a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
              </div>
            </li>
            {{/each}}
          </ul>
        </div>

        <div class="sheet-box color-bg-archetype">
          <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">{{localize "MNBL.activatedrunes"}}</label></h3>
              </span>
              <span class="item-field-label-long">
                <label class="short-label">{{localize "MNBL.rune"}}</label>
              </span>
              <span class="item-field-label-short">
                <label class="short-label">{{localize "MNBL.mode"}}</label>
              </span>
              <span class="item-field-label-medium">
                <label class="short-label">{{localize "MNBL.duration"}}.</label>
              </span>
              <span class="item-field-label-short">
                <label class="short-label">{{localize "MNBL.soul"}}</label>
              </span>
              <div class="item-filler">&nbsp;</div>
              <div class="item-controls item-controls-fixed">
              </div>
            </li>
            {{#each runeEffects as |runeEffect key|}}
            <li class="item flexrow " data-item-id="{{runeEffect._id}}" data-item-type="runeeffect">
              <img class="item-name-img" src="{{runeEffect.img}}" />
              <span class="item-name-label competence-name">{{runeEffect.name}}</span>
              <span class="item-field-label-long">{{runeEffect.system.rune}}</span>
              <span class="item-field-label-short">{{upperFirst runeEffect.system.mode}}</span>
              <span class="item-field-label-medium">{{runeEffect.system.duree}}</span>
              <span class="item-field-label-short">{{runeEffect.system.pointame}}</span>
              <div class="item-filler">&nbsp;</div>
              <div class="item-controls item-controls-fixed">
                <a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
                <a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
              </div>
            </li>
            {{/each}}
          </ul>
        </div>

      </div>

    </div>


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

      <div class="flexcol">

        <div class="sheet-box color-bg-archetype">
          <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">{{localize "MNBL.treasuremoney"}}</label></h3>
              </span>
              <span class="item-field-label-medium">
                <label class="short-label">{{localize "MNBL.quantity"}}</label>
              </span>
              <span class="item-field-label-medium">
                <label class="short-label">{{localize "MNBL.unit"}}</label>
              </span>
              <div class="item-filler">&nbsp;</div>
              <div class="item-controls item-controls-fixed">
                <a class="item-control item-add" data-type="monnaie" title="Ajouter une monnaie"><i
                    class="fas fa-plus"></i></a>
              </div>
            </li>
            {{#each monnaies as |monnaie key|}}
            <li class="item flexrow " data-item-id="{{monnaie._id}}" data-item-type="monnaie">
              <img class="item-name-img" src="{{monnaie.img}}" />
              <span class="item-name-label competence-name">{{monnaie.name}}</span>
              <span class="item-name-label competence-name item-field-label-medium">{{monnaie.system.quantite}}
                <a class="quantity-modify plus-minus-button" data-quantite-value="-1">-</a>
                <a class="quantity-modify plus-minus-button" data-quantite-value="+1">+</a>
              </span>
              <span class="item-name-label competence-name item-field-label-medium">{{monnaie.system.unite}}</span>
              <div class="item-filler">&nbsp;</div>
              <div class="item-controls item-controls-fixed">
                <a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
                <a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
              </div>
            </li>
            {{/each}}
          </ul>
        </div>

        <div class="sheet-box color-bg-archetype">
          <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">{{localize "MNBL.specialactions"}}</label></h3>
              </span>
            </li>
          </ul>
          <button class="button-sheet-roll button-sheet-roll-large roll-assomer" id="">{{localize "MNBL.knockout"}}</button>
          <button class="button-sheet-roll button-sheet-roll-large roll-fuir" id="">{{localize "MNBL.flee"}}</button>
          <button class="button-sheet-roll button-sheet-roll-large roll-immobiliser" id="">{{localize "MNBL.immobilize"}}</button>
          <label class="item-field-label-short">{{localize "MNBL.mounted"}} ?</label>
          <input type="checkbox" name="system.combat.monte" {{checked data.combat.monte}} />
        </div>

        <div class="sheet-box color-bg-archetype">
          <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">{{localize "MNBL.weapons"}}</label></h3>
              </span>
              <span class="item-field-label-short">
                <label class="short-label">{{localize "MNBL.attack"}}</label>
              </span>
              <span class="item-field-label-short">
                <label class="short-label">{{localize "MNBL.defense"}}</label>
              </span>
              <span class="item-field-label-short">
                <label class="short-label">{{localize "MNBL.damage"}}</label>
              </span>
              <div class="item-filler">&nbsp;</div>
              <div class="item-controls item-controls-fixed">
                <a class="item-control item-add" data-type="arme" title="Ajouter une arme"><i
                    class="fas fa-plus"></i></a>
              </div>
            </li>
            {{#each armes as |arme key|}}
            <li class="item flexrow " data-item-id="{{arme._id}}" data-item-type="arme">
              <img class="item-name-img" src="{{arme.img}}" />
              <span class="item-name-label competence-name">{{arme.name}}</span>

              <span class="item-field-label-short">
                {{#if arme.system.equipped}}
                <button class="roll-arme-offensif button-sheet-roll">{{arme.system.totalOffensif}}</button>
                {{else}}
                <button disabled class="roll-arme-offensif button-sheet-roll-offline">{{arme.system.totalOffensif}}</button>
                {{/if}}
              </span>

              {{#if arme.system.isdefense}}
              <span class="item-field-label-short arme-defensif"><label
                  class="arme-defensif">{{arme.system.totalDefensif}}</label></span>
              {{else}}
              <span class="item-field-label-short arme-defensif"><label class="arme-defensif">-</label></span>
              {{/if}}

              <span class="item-field-label-short">
                {{#if arme.system.equipped}}
                <button class="roll-arme-degats button-sheet-roll">{{arme.system.totalDegats}}</button>
                {{else}}
                <button disabled class="button-sheet-roll-offline">{{arme.system.totalDegats}}</button>
                {{/if}}
              </span>

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

        <div class="sheet-box color-bg-archetype">
          <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">{{localize "MNBL.Protections"}}</label></h3>
              </span>
              <span class="item-field-label-short">
                <label class="short-label">Protection</label>
              </span>
              <div class="item-filler">&nbsp;</div>
              <div class="item-controls item-controls-fixed">
                <a class="item-control item-add" data-type="protection" title="Ajouter une protection"><i
                    class="fas fa-plus"></i></a>
              </div>
            </li>
            {{#each protections as |protection key|}}
            <li class="item flexrow " data-item-id="{{protection._id}}" data-item-type="protection">
              <img class="item-name-img" src="{{protection.img}}" />
              <span class="item-name-label competence-name">{{protection.name}}</span>
              <span class="item-field-label-short arme-defensif"><label
                  class="arme-defensif">{{protection.system.protection}}</label>
              </span>
              <div class="item-filler">&nbsp;</div>
              <div class="item-controls item-controls-fixed">
                <a class="item-control item-equip" title="Worn">{{#if protection.system.equipped}}<i
                    class="fas fa-circle"></i>{{else}}<i class="fas fa-genderless"></i>{{/if}}</a>
                <a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
                <a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
              </div>
            </li>
            {{/each}}
          </ul>
        </div>

        <div class="sheet-box color-bg-archetype">
          <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">{{localize "MNBL.equipments"}}</label></h3>
              </span>
              <div class="item-filler">&nbsp;</div>
              <div class="item-controls item-controls-fixed">
                <a class="item-control item-add" data-type="equipement" title="Ajouter un équipement"><i
                    class="fas fa-plus"></i></a>
              </div>
            </li>
            {{#each equipements as |equipement key|}}
            <li class="item flexrow " data-item-id="{{equipement._id}}" data-item-type="equipement">
              <img class="item-name-img" src="{{equipement.img}}" />
              <span class="item-name-label competence-name">{{equipement.name}}</span>
              <div class="item-filler">&nbsp;</div>
              <div class="item-controls item-controls-fixed">
                <a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
                <a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
              </div>
            </li>
            {{/each}}
          </ul>
        </div>

      </div>

    </div>


    {{!-- Biography Tab --}}
    <div class="tab biodata" data-group="primary" data-tab="biodata">
      <div class="grid grid-3col">
        <div>
          <ul class="item-list alternate-list">
            <li class="item flexrow" data-item-id="{{origine._id}}">
              <label class="generic-label">{{localize "MNBL.origin"}} : </label>
              <label class="generic-label">{{origine.name}}</label>
              <div class="item-controls item-controls-fixed">
                <a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
                <a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
              </div>
            </li>
            <li class="item flexrow" data-item-id="{{heritage._id}}">
              <label class="generic-label">{{localize "MNBL.legacy"}} : </label>
              <label class="generic-label">{{heritage.name}}</label>
              <div class="item-controls item-controls-fixed">
                <a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
                <a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
              </div>
            </li>
            <li class="item flexrow" data-item-id="{{metier._id}}">
              <label class="generic-label">{{localize "MNBL.profession"}} : </label>
              <label class="generic-label">{{metier.name}}</label>
              <div class="item-controls item-controls-fixed">
                <a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
                <a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
              </div>
            </li>
            <li class="flexrow item">
              <label class="generic-label">{{localize "MNBL.genre"}}</label>
              <input type="text" class="" name="system.biodata.sex" value="{{data.biodata.sex}}" data-dtype="String" />
            </li>

          </ul>
        </div>

        <div>
          <ul class="item-list alternate-list">
            <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">{{localize "MNBL.size"}}</label>
              <input type="text" class="" name="system.biodata.size" value="{{data.biodata.size}}"
                data-dtype="String" />
            </li>
            <li class="item flexrow">
              <label class="generic-label">{{localize "MNBL.hair"}}</label>
              <input type="text" class="" name="system.biodata.hair" value="{{data.biodata.hair}}"
                data-dtype="String" />
            </li>
          </ul>
        </div>

        <div>
          <ul class="item-list alternate-list">
            <li class="item flexrow">
              <label class="generic-label">{{localize "MNBL.eyes"}}</label>
              <input type="text" class="" name="system.biodata.eyes" value="{{data.biodata.eyes}}"
                data-dtype="String" />
            </li>
            <li class="flexrow item">
              <label class="generic-label">{{localize "MNBL.preferredhand"}}</label>
              <input type="text" class="" name="system.biodata.preferredhand" value="{{data.biodata.preferredhand}}"
                data-dtype="String" />
            </li>
            <li class="flexrow item">
              <label class="generic-label">{{localize "MNBL.weight"}}</label>
              <input type="text" class="" name="system.biodata.weight" value="{{data.biodata.weight}}"
                data-dtype="String" />
            </li>
          </ul>
        </div>
      </div>

      {{#if isGM}}
      <div class="grid grid-2col">
        <div>
          <ul class="item-list alternate-list">
            <li class="flexrow item">
              <label class="generic-label">{{localize "MNBL.soulmultiplier"}}</label>
              <input type="text" class="input-numeric-short" name="system.biodata.amemultiplier"
                value="{{data.biodata.amemultiplier}}" data-dtype="Number" />
            </li>
          </ul>
        </div>
        <div>
          <ul class="item-list alternate-list">
            <li class="flexrow item">
              <label class="generic-label">{{localize "MNBL.ignorehealthmalus"}} ?</label>
              <input type="checkbox" name="system.biodata.ignoresantemalus" {{checked data.biodata.ignoresantemalus}} />
            </li>
            <li class="flexrow item">
              <label class="generic-label">{{localize "MNBL.ignoresoulmalus"}} ?</label>
              <input type="checkbox" name="system.biodata.ignoreamemalus" {{checked data.biodata.ignoreamemalus}} />
            </li>
          </ul>
        </div>
      </div>
      {{/if}}

      <span>
        <h3>Description</h3>
      </span>
      <div class="medium-editor item-text-long-line">
        {{editor description target="system.biodata.description" button=true owner=owner editable=editable}}
      </div>

    </div>

  </section>
</form>