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

  {{!-- Sheet Header --}}
  <header class="sheet-header">
    <div class="header-fields background-sheet-header">
      <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">

            <div class="flexrow">
              <ul class="item-list alternate-list">
                {{#each system.caracteristiques as |carac key|}}
                {{#if (eq kind "physical")}}
                <li class="item flexrow ">
                  <h4 class="item-name-label competence-name roll-style"><a class="roll-carac"
                      data-key="{{key}}">{{carac.label}}</a></h4>
                  <input type="text" class="padd-right status-small-label color-class-common item-field-label-short"
                    name="system.caracteristiques.{{key}}.value" value="{{carac.value}}" data-dtype="Number" />
                  <input type="text" class="padd-right status-small-label color-class-common item-field-label-short"
                    name="system.caracteristiques.{{key}}.rang" value="{{carac.rang}}" data-dtype="Number" />
                </li>
                {{/if}}
                {{/each}}
              </ul>
            </div>

            <div class="flexrow">
              <ul class="item-list alternate-list">
                {{#each system.caracteristiques as |carac key|}}
                {{#if (eq kind "mental")}}
                <li class="item flexrow ">
                  <h4 class="item-name-label competence-name roll-style"><a class="roll-carac"
                      data-key="{{key}}">{{carac.label}}</a></h4>
                  <input type="text" class="padd-right status-small-label color-class-common item-field-label-short"
                    name="system.caracteristiques.{{key}}.value" value="{{carac.value}}" data-dtype="Number" />
                  <input type="text" class="padd-right status-small-label color-class-common item-field-label-short"
                    name="system.caracteristiques.{{key}}.rang" value="{{carac.rang}}" data-dtype="Number" />
                </li>
                {{/if}}
                {{/each}}
              </ul>
            </div>

          </div>
          <div class="flexrow">
            <label class="item-field-label-short">PV</label>
            <input type="text" class="item-field-label-short" name="system.pv.value" value="{{system.pv.value}}"
              data-dtype="Number" />
            <input type="text" class="item-field-label-short" name="system.pv.max" value="{{system.pv.max}}" disabled
              data-dtype="Number" />
            <input type="text" class="item-field-label-short" name="system.pv.mod" value="{{system.pv.mod}}"
              data-dtype="Number" />
            <label class="item-field-label-short">Malus</label>
            <input type="text" class="item-field-label-short" value="{{pvMalus.value}}" data-dtype="Number" disabled />
            <span>&nbsp;&nbsp;</span>

            <select class="item-field-label-medium" type="text" name="system.statutmasque"
              value="{{system.statutmasque}}" data-dtype="string">
              {{selectOptions config.statutMasque selected=system.statutmasque}}
            </select>

            <span>&nbsp;&nbsp;</span>
            <label class="item-field-label-short">Tricherie</label>
            <input type="text" class="item-field-label-short" name="system.rang.tricherie.value"
              value="{{system.rang.tricherie.value}}" data-dtype="Number" />
            <input type="text" class="item-field-label-short" name="system.rang.tricherie.max"
              value="{{system.rang.tricherie.max}}" data-dtype="Number" />
          </div>

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

  {{!-- Sheet Tab Navigation --}}
  <nav class="sheet-tabs tabs" data-group="primary">
    <a class="item" data-tab="competences">Compétences</a>
    <a class="item" data-tab="fee">Fée</a>
    <a class="item" data-tab="combat">Combat</a>
    <a class="item" data-tab="equipement">Equipement</a>
    <a class="item" data-tab="contact">Contacts</a>
    <a class="item" data-tab="biodata">Bio</a>
    <a class="item" data-tab="notes">Notes</a>
  </nav>

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

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

      <div class="flexcol">

        <div class="grid-2col">

          <div>
            {{#each utileSkillsPhysical as |skillDef keyProfil|}}
            {{> systems/fvtt-les-heritiers/templates/partial-utile-skills.html skillDef=skillDef keyProfil=keyProfil
            config=config}}
            {{/each}}
          </div>

          <div>
            {{#each utileSkillsMental as |skillDef keyProfil|}}
            {{> systems/fvtt-les-heritiers/templates/partial-utile-skills.html skillDef=skillDef keyProfil=keyProfil
            config=config}}
            {{/each}}
          </div>

        </div>

        <div class="sheet-box color-bg-archetype">
          <ul class="item-list alternate-list">
            <li class="item flexrow">
              <span class="item-field-label-long2">
                <h3><label class="items-title-text">Compétences Futiles</label></h3>
              </span>
              <span class="item-field-label-short">
                <label class="short-label">Niveau</label>
              </span>
              <div class="item-filler">&nbsp;</div>
              <div class="item-controls item-controls-fixed">
                <a class="item-control item-add" data-type="competence" title="Ajouter une compétence futile"><i
                    class="fas fa-plus"></i></a>
              </div>
            </li>
            {{#each futileSkills as |skill key|}}
            <li class="item flexrow " data-item-id="{{skill._id}}" data-item-type="competence">
              <span class="item-field-label-long2 roll-style"><a class="roll-competence item-field-label-short"
                  data-attr-key="tochoose">{{skill.name}}</a></span>

              <select class="item-field-label-short edit-item-data" type="text" data-item-field="niveau"
                value="{{skill.system.niveau}}" data-dtype="Number">
                {{selectOptions @root.config.listNiveau selected=skill.system.niveau}}
              </select>

              <div class="item-controls item-controls-fixed">
                <a class="item-control item-edit" title="Editer l'item"><i class="fas fa-edit"></i></a>
                <a class="item-control item-delete" title="Supprimer l'item"><i class="fas fa-trash"></i></a>
              </div>
            </li>
            {{/each}}
          </ul>
        </div>

      </div>

    </div>

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

      <ul class="item-list alternate-list">
        <li class="item flexrow">
          <button class="chat-card-button roll-initiative">Initiative (actuelle : {{initiative}} )</button>
        </li>
        <li class="item flexrow list-item items-title-bg">
          <label class="item-field-label-medium"><strong>Esquive</strong></label>
          <label class="item-field-label-medium">Masquée</label>
          <input type="text" class="item-field-label-short" name="system.combat.esquive.masquee"
            value="{{system.combat.esquive.masquee}}" data-dtype="Number" />
          <label class="item-field-label-medium">Démasquée</label>
          <input type="text" class="item-field-label-short" name="system.combat.esquive.demasquee"
            value="{{system.combat.esquive.demasquee}}" data-dtype="Number" />
          <label class="item-field-label-short">&nbsp;&nbsp;</label>
          <label class="item-field-label-medium"><strong>Parade</strong></label>
          <label class="item-field-label-medium">Masquée</label>
          <input type="text" class="item-field-label-short" name="system.combat.parade.masquee"
            value="{{system.combat.parade.masquee}}" data-dtype="Number" />
          <label class="item-field-label-medium">Démasquée</label>
          <input type="text" class="item-field-label-short" name="system.combat.parade.demasquee"
            value="{{system.combat.parade.demasquee}}" data-dtype="Number" />
        </li>
        <li class="item flexrow list-item items-title-bg">
          <label class="item-field-label-long">Rés. physique</label>
          <input type="text" class="item-field-label-short" name="system.combat.resistancephysique.value"
            value="{{system.combat.resistancephysique.value}}" data-dtype="Number" />
          <label class="item-field-label-short">&nbsp;&nbsp;</label>
          <label class="item-field-label-long">Rés. psychique</label>
          <input type="text" class="item-field-label-short" name="system.combat.resistancepsychique.value"
            value="{{system.combat.resistancepsychique.value}}" data-dtype="Number" />
          <label class="item-field-label-short">&nbsp;&nbsp;</label>
          <label class="item-field-label-medium">Protection : </label>
          <input type="text" class="item-field-label-short" name="system.combat.protection.value"
            value="{{system.combat.protection.value}}" data-dtype="Number" />
        </li>
        <li class="item flexrow list-item items-title-bg">
          <label class="item-field-label-long">Effets secondaires</label>
          <input type="text" class="item-field-label-short" name="system.combat.effetssecondaires"
            value="{{system.combat.effetssecondaires}}" data-dtype="String" />
          <label class="item-field-label-short">&nbsp;&nbsp;</label>
          <label class="item-field-label-long">Dissimulation : </label>
          <input type="text" class="item-field-label-short" name="system.combat.dissimulation.value"
            value="{{system.combat.dissimulation.value}}" data-dtype="Number" />
        </li>
      </ul>

      <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">Armes</label></h3>
              </span>
              <span class="item-field-label-short">
                <label class="short-label">Dégats</label>
              </span>
              <span class="item-field-label-short">
                <label class="short-label">Attaque</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">
                {{arme.system.degats}}
              </span>

              <span class="item-field-label-short">
                <button class="roll-attaque-arme button-sheet-roll">Attaque</button>
              </span>

              <span class="item-field-label-short">
                <button class="roll-assomer-arme button-sheet-roll">Assomer</button>
              </span>

              {{#if arme.system.isMelee}}
              <span class="item-field-label-short">
                <button class="roll-attaque-charge-arme button-sheet-roll">Charger</button>
              </span>
              <span class="item-field-label-short">
                <button class="roll-attaque-brutale-arme button-sheet-roll button-sheet-roll-long1">Attaque
                  brutale</button>
              </span>
              {{/if}}

              <div class="item-filler">&nbsp;</div>
              <div class="item-controls item-controls-fixed">
                <a class="item-control item-equip" title="Equipé">{{#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="Editer l'item"><i class="fas fa-edit"></i></a>
                <a class="item-control item-delete" title="Supprimer l'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">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-edit" title="Editer l'item"><i class="fas fa-edit"></i></a>
                <a class="item-control item-delete" title="Supprimer l'item"><i class="fas fa-trash"></i></a>
              </div>
            </li>
            {{/each}}
          </ul>
        </div>
      </div>
    </div>


    {{!-- Fee Tab --}}
    <div class="tab fee" data-group="primary" data-tab="fee">

      <div class="flexrow">
        <li class="item flexrow " data-item-id="{{fee._id}}" data-item-type="avantage">
          <img class="item-name-img" src="{{fee.img}}" />
          <span class="item-field-label-long2">{{fee.name}}</span>
          <div class="item-filler">&nbsp;</div>
          <div class="item-controls item-controls-fixed">
            <a class="item-control item-edit" title="Editer l'item"><i class="fas fa-edit"></i></a>
            <a class="item-control item-delete" title="Supprimer l'item"><i class="fas fa-trash"></i></a>
          </div>
        </li>
      </div>

      <div class="flexrow">
        <ul>
          <li class="flexrow item">
            <label class="item-field-label-medium roll-style"><a class="roll-rang item-field-label-short"
                data-rang-key="feerie">Féerie</a></label>
            <input type="text" class="item-field-label-short" name="system.rang.feerie.value"
              value="{{system.rang.feerie.value}}" data-dtype="Number" />
            <input type="text" class="item-field-label-short" name="system.rang.feerie.max"
              value="{{system.rang.feerie.max}}" data-dtype="Number" />
            <span class="item-field-label-medium"></span>
            <label class="item-field-label-medium roll-style"><a class="roll-rang item-field-label-short"
                data-rang-key="masque">Masque</a></label>
            <input type="text" class="item-field-label-short" name="system.rang.masque.value"
              value="{{system.rang.masque.value}}" data-dtype="Number" />
            <input type="text" class="item-field-label-short" name="system.rang.masque.max"
              value="{{system.rang.masque.max}}" data-dtype="Number" />
            <span class="item-field-label-medium"></span>
            <label class="item-field-label-long roll-style"><a class="dialog-recup-usage item-field-label-long">Récup.
                P. d'Usage</a></label>
          </li>
        </ul>
      </div>

      <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">Avantages</label></h3>
              </span>
              <div class="item-filler">&nbsp;</div>
              <div class="item-controls item-controls-fixed">
                <a class="item-control item-add" data-type="avantage" title="Ajouter un avantage"><i
                    class="fas fa-plus"></i></a>
              </div>
            </li>
            {{#each avantages as |avantage key|}}
            <li class="item flexrow " data-item-id="{{avantage._id}}" data-item-type="avantage">
              <img class="item-name-img" src="{{avantage.img}}" />
              <span class="item-field-label-long2">{{avantage.name}}</span>
              <div class="item-filler">&nbsp;</div>
              <div class="item-controls item-controls-fixed">
                <a class="item-control item-edit" title="Editer l'item"><i class="fas fa-edit"></i></a>
                <a class="item-control item-delete" title="Supprimer l'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">Désavantages</label></h3>
              </span>
              <div class="item-filler">&nbsp;</div>
              <div class="item-controls item-controls-fixed">
                <a class="item-control item-add" data-type="desavantage" title="Ajouter un désavantage"><i
                    class="fas fa-plus"></i></a>
              </div>
            </li>
            {{#each desavantages as |desavantage key|}}
            <li class="item flexrow " data-item-id="{{desavantage._id}}" data-item-type="desavantage">
              <img class="item-name-img" src="{{desavantage.img}}" />
              <span class="item-field-label-long2">{{desavantage.name}}</span>
              <div class="item-filler">&nbsp;</div>
              <div class="item-controls item-controls-fixed">
                <a class="item-control item-edit" title="Editer l'item"><i class="fas fa-edit"></i></a>
                <a class="item-control item-delete" title="Supprimer l'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">Atouts Féériques</label></h3>
              </span>
              <div class="item-filler">&nbsp;</div>
              <div class="item-controls item-controls-fixed">
                <a class="item-control item-add" data-type="atoutfeerique" title="Ajouter un atout féerique"><i
                    class="fas fa-plus"></i></a>
              </div>
            </li>
            {{#each atouts as |atout key|}}
            <li class="item flexrow " data-item-id="{{atout._id}}" data-item-type="atout">
              <img class="item-name-img" src="{{atout.img}}" />
              <span class="item-field-label-long2">{{atout.name}}</span>
              <div class="item-filler">&nbsp;</div>
              <div class="item-controls item-controls-fixed">
                <a class="item-control item-edit" title="Editer l'item"><i class="fas fa-edit"></i></a>
                <a class="item-control item-delete" title="Supprimer l'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 item-field-label-long2-img">
                <h3><label class="items-title-text">Pouvoirs</label></h3>
              </span>
              <span class="item-field-label-medium">
                <label class="short-label">Masque</label>
              </span>
              <span class="item-field-label-medium">
                <label class="short-label">Type</label>
              </span>
              <span class="item-field-label-medium">
                <label class="short-label">Niveau</label>
              </span>
              <span class="item-field-label-medium">
                <label class="short-label">Usage</label>
              </span>
              <div class="item-filler">&nbsp;</div>
              <div class="item-controls item-controls-fixed">
                <a class="item-control item-add" data-type="pouvoir" title="Ajouter un pouvoir"><i
                    class="fas fa-plus"></i></a>
              </div>
            </li>
            {{#each pouvoirs as |pouvoir key|}}
            <li class="item flexrow " data-item-id="{{pouvoir._id}}" data-item-type="pouvoir">
              <img class="item-name-img" src="{{pouvoir.img}}" />
              <span class="item-field-label-long2 roll-style"><a class="roll-pouvoir">{{pouvoir.name}}</a></span>
              <span class="item-field-label-medium">{{upperFirst pouvoir.system.masquetype}}</span>
              <span class="item-field-label-medium">{{upperFirst pouvoir.system.pouvoirtype}}</span>
              <span class="item-field-label-medium">{{upperFirst pouvoir.system.niveau}}</span>
              <span class="item-field-label-medium">{{pouvoir.system.pointsusagecourant}}/{{pouvoir.maxUsage}}</span>

              <div class="item-filler">&nbsp;</div>
              <div class="item-controls item-controls-fixed">
                <a class="item-control item-edit" title="Editer l'item"><i class="fas fa-edit"></i></a>
                <a class="item-control item-delete" title="Supprimer l'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">Capacités Naturelles</label></h3>
              </span>
              <div class="item-filler">&nbsp;</div>
              <div class="item-controls item-controls-fixed">
                <a class="item-control item-add" data-type="capacitenaturelle" title="Ajouter une capacité naturelle"><i
                    class="fas fa-plus"></i></a>
              </div>
            </li>
            {{#each capacites as |capa key|}}
            <li class="item flexrow " data-item-id="{{capa._id}}" data-item-type="capacite">
              <img class="item-name-img" src="{{capa.img}}" />
              <span class="item-field-label-long2">{{capa.name}}</span>
              <div class="item-filler">&nbsp;</div>
              <div class="item-controls item-controls-fixed">
                <a class="item-control item-edit" title="Editer l'item"><i class="fas fa-edit"></i></a>
                <a class="item-control item-delete" title="Supprimer l'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="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">Equipements</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="Créer un équipement"><i
                  class="fas fa-plus"></i></a>
            </div>
          </li>
          {{#each equipements as |equip key|}}
          <li class="item flexrow " data-item-id="{{equip._id}}" data-item-type="equipement">
            <img class="item-name-img" src="{{equip.img}}" />
            <span class="item-field-label-long2">{{equip.name}}</span>
            <div class="item-filler">&nbsp;</div>
            <div class="item-controls item-controls-fixed">
              <a class="item-control item-edit" title="Editer l'item"><i class="fas fa-edit"></i></a>
              <a class="item-control item-delete" title="Supprimer l'item"><i class="fas fa-trash"></i></a>
            </div>
          </li>
          {{/each}}
        </ul>
      </div>
    </div>

    {{!-- Contact Tab --}}
    <div class="tab contact" data-group="primary" data-tab="contact">

      <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 item-field-label-long3">
              <h3><label class="items-title-text">Contacts, Allies et Ennemis</label></h3>
            </span>
            <div class="item-filler">&nbsp;</div>
            <div class="item-controls item-controls-fixed">
              <a class="item-control item-add" data-type="contact" title="Créer un contact"><i
                  class="fas fa-plus"></i></a>
            </div>
          </li>
      </div>

      {{#each contacts as |contactList idx|}}
      <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">{{contactList.label}}</label></h3>
            </span>
            <div class="item-filler">&nbsp;</div>
            <div class="item-controls item-controls-fixed">
              <a class="item-control item-add" data-type="contact" title="Créer un contact"><i
                  class="fas fa-plus"></i></a>
            </div>
          </li>
          {{#each contactList.list as |contact key|}}
          <li class="item flexrow " data-item-id="{{contact._id}}" data-item-type="contact">
            <img class="item-name-img" src="{{contact.img}}" />
            <span class="item-field-label-long2">{{contact.name}}</span>
            <div class="item-filler">&nbsp;</div>
            <div class="item-controls item-controls-fixed">
              <a class="item-control item-edit" title="Editer l'item"><i class="fas fa-edit"></i></a>
              <a class="item-control item-delete" title="Supprimer l'item"><i class="fas fa-trash"></i></a>
            </div>
          </li>
          {{/each}}
        </ul>
      </div>
      {{/each}}

    </div>

    {{!-- Biography Tab --}}
    <div class="tab biodata" data-group="primary" data-tab="biodata">

      <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 item-field-label-long2-img">
              <h3><label class="items-title-text">Profils</label></h3>
            </span>
            <span class="item-field-label-medium">
              <label class="short-label">Type</label>
            </span>
            <div class="item-filler">&nbsp;</div>
            <div class="item-controls item-controls-fixed">
            </div>
          </li>
          {{#each profils as |profil key|}}
          <li class="item flexrow " data-item-id="{{profil._id}}" data-item-type="profil">
            <img class="item-name-img" src="{{profil.img}}" />
            <span class="item-field-label-long2">{{profil.name}}</span>
            <span class="item-field-label-medium">{{upperFirst profil.system.profiltype}}</span>
            <div class="item-filler">&nbsp;</div>
            <div class="item-controls item-controls-fixed">
              <a class="item-control item-edit" title="Editer l'item"><i class="fas fa-edit"></i></a>
              <a class="item-control item-delete" title="Supprimer l'item"><i class="fas fa-trash"></i></a>
            </div>
          </li>
          {{/each}}
        </ul>
      </div>

      <div class="flexrow">
        <ul>
          <li class="flexrow item">
            <label class="item-field-label-long2">Nom humain</label> <input type="text" class=""
              name="system.biodata.nomhumain" value="{{system.biodata.nomhumain}}" data-dtype="String" />
          </li>
          <li class="flexrow item">
            <label class="item-field-label-long2">Activités</label> <input type="text" class=""
              name="system.biodata.activites" value="{{system.biodata.activites}}" data-dtype="String" />
          </li>
          <li class="flexrow item">
            <label class="item-field-label-long2">Apparence masquée</label> <input type="text" class=""
              name="system.biodata.apparencemasquee" value="{{system.biodata.apparencemasquee}}" data-dtype="String" />
          </li>
          <li class="flexrow item">
            <label class="item-field-label-long2">Apparence démasquée</label> <input type="text" class=""
              name="system.biodata.apparencedemasquee" value="{{system.biodata.apparencedemasquee}}"
              data-dtype="String" />
          </li>
          <li class="flexrow item">
            <label class="item-field-label-long2">Titre et Famille</label> <input type="text" class=""
              name="system.biodata.titrefamille" value="{{system.biodata.titrefamille}}" data-dtype="String" />
          </li>
          <li class="flexrow item">
            <label class="item-field-label-long2">Factions féériques</label> <input type="text" class=""
              name="system.biodata.factionfeerique" value="{{system.biodata.factionfeerique}}" data-dtype="String" />
          </li>
          <li class="flexrow item">
            <label class="item-field-label-long2">Traits de caractères dominants</label> <input type="text" class=""
              name="system.biodata.traitscaracteres" value="{{system.biodata.traitscaracteres}}" data-dtype="String" />
          </li>
          <li class="flexrow item">
            <label class="item-field-label-long2">Langues</label> <input type="text" class=""
              name="system.biodata.langues" value="{{system.biodata.langues}}" data-dtype="String" />
          </li>
        </ul>
      </div>

      <div class="grid grid-3col">
        <div>
          <ul>
            <li class="flexrow item">
              <label class="generic-label">Fortune</label>
              <input type="text" class="" name="system.biodata.fortune" value="{{system.biodata.fortune}}"
                data-dtype="String" />
            </li>
            <li class="flexrow item">
              <label class="generic-label">Genre</label>
              <input type="text" class="" name="system.biodata.sex" value="{{system.biodata.sex}}"
                data-dtype="String" />
            </li>
            <li class="item flexrow">
              <label class="generic-label">Age</label>
              <input type="text" class="" name="system.biodata.age" value="{{system.biodata.age}}"
                data-dtype="String" />
            </li>
          </ul>
        </div>
        <div>
          <ul>
            <li class="item flexrow">
              <label class="generic-label">Taille Masquée</label>
              <input type="text" class="" name="system.biodata.taillemasquee" value="{{system.biodata.taillemasquee}}"
                data-dtype="String" />
            </li>
            <li class="item flexrow">
              <label class="generic-label">Taille Démasquée</label>
              <input type="text" class="" name="system.biodata.tailledemasquee"
                value="{{system.biodata.tailledemasquee}}" data-dtype="String" />
            </li>
            <li class="flexrow item">
              <label class="generic-label">Type de taille</label>
              <input type="text" class="" name="system.experience.typetaille" value="{{system.experience.typetaille}}"
                data-dtype="String" />
            </li>
            <li class="flexrow item">
              <label class="generic-label">Points d'héritage</label>
              <input type="text" class="" name="system.rang.heritage.value" value="{{system.rang.heritage.value}}"
                data-dtype="String" />
            </li>

          </ul>
        </div>

        <div>
          <ul>
            <li class="item flexrow">
              <label class="generic-label">Poids Masqué</label>
              <input type="text" class="" name="system.biodata.poidsmasquee" value="{{system.biodata.poidsmasquee}}"
                data-dtype="String" />
            </li>
            <li class="item flexrow">
              <label class="generic-label">Poids Démasqué</label>
              <input type="text" class="" name="system.biodata.poidsdemasquee" value="{{system.biodata.poidsdemasquee}}"
                data-dtype="String" />
            </li>
            <li class="item flexrow">
              <label class="generic-label">XP</label>
              <input type="text" class="" name="system.experience.value" value="{{system.experience.value}}"
                data-dtype="String" />
            </li>
            <li class="item flexrow">
              <label class="generic-label">XP pour tricher</label>
              <input type="text" class="" name="system.experience.pourtricher" value="{{system.experience.pourtricher}}"
                data-dtype="String" />
            </li>
          </ul>
        </div>
      </div>
    </div>

    <div class="tab notes" data-group="primary" data-tab="notes">
      <span>
        <h3>Historique</h3>
      </span>
      <div class="medium-editor item-text-long-line">
        {{editor description target="system.biodata.description" button=true owner=owner editable=editable}}
      </div>

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

      <span>
        <h3>Rêves étranges</h3>
      </span>
      <div class="medium-editor item-text-long-line">
        {{editor revesetranges target="system.biodata.revesetranges" button=true owner=owner editable=editable}}
      </div>

      <span>
        <h3>Secrets découverts</h3>
      </span>
      <div class="medium-editor item-text-long-line">
        {{editor secretsdecouverts target="system.biodata.secretsdecouverts" button=true owner=owner editable=editable}}
      </div>

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

    </div>

  </section>
</form>