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

            <ul class="item-list alternate-list">

              <li class="item flexrow">
                <h4 class="item-name-label competence-name item-field-label-medium">Notoriété</h4>
                <input type="text" class="padd-right status-small-label color-class-common item-field-label-short"
                  name="system.notoriete" value="{{system.notoriete}}" data-dtype="Number" />

                <h4 class="item-name-label competence-name item-field-label-long">Résistance</h4>
                <input type="text" class="padd-right status-small-label color-class-common item-field-label-short"
                  name="system.resistance" value="{{system.resistance}}" data-dtype="Number" />
              </li>

              <li class="item flexrow ">
                <h4 class="item-name-label competence-name item-field-label-long">Développement</h4>
                <input type="text" class="padd-right status-small-label color-class-common item-field-label-short"
                  name="system.developpement" value="{{system.developpement}}" 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="talents">Membres&Talents</a>
    <a class="item" data-tab="contacts">Contacts</a>
    <a class="item" data-tab="ressources">Ressources</a>
    <a class="item" data-tab="biodata">Description</a>
  </nav>

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

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

        <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">Membres</label></h3>
              </span>
              <div class="item-filler">&nbsp;</div>
            </li>
            {{#each members as |membre key|}}
            <li class="item flexrow " data-actor-id="{{membre.id}}" >
              <img class="item-name-img" src="{{membre.img}}" />
              <span class="item-name-label competence-name">{{membre.name}}</span>
  
              <div class="item-filler">&nbsp;</div>
              <div class="item-controls item-controls-fixed">
                <a class="item-control actor-edit" title="Edit Actor"><i class="fas fa-edit"></i></a>
                <a class="item-control actor-delete" title="Delete Actor"><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">
              <span class="item-name-label-header">
                <h3><label class="items-title-text">Talents de Cellule</label></h3>
              </span>
              <span class="item-field-label-short">
                <label class="short-label">Résumé</label>
              </span>
              <div class="item-filler">&nbsp;</div>
              <div class="item-controls item-controls-fixed">
                <a class="item-control item-add" data-type="talent" title="Ajouter un Talent"><i
                    class="fas fa-plus"></i></a>
              </div>
            </li>
            {{#each talents as |talent key|}}
            <li class="item flexrow " data-item-id="{{talent._id}}" data-item-type="talent">
              <img class="item-name-img" src="{{talent.img}}" />
              <span class="item-name-label competence-name">{{talent.name}}</span>
              <span class="item-name-label item-field-label-long2">{{talent.system.resumebonus}}</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>

    {{!-- Contacts Tab --}}
    <div class="tab contacts" data-group="primary" data-tab="contacts">

      <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">Contacts</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">Niveau</label>
              </span>
              <div class="item-filler">&nbsp;</div>
            </li>
            {{#each contacts as |contact key|}}
            <li class="item flexrow " data-item-id="{{contact._id}}" data-item-type="competence">
              <img class="item-name-img" src="{{contact.img}}" />
              <span class="item-name-label competence-name">{{contact.name}}</span>
              <span class="item-name-label item-field-label-medium">{{upperFirst contact.system.contacttype}}</span>
              <span class="item-name-label item-field-label-medium">{{contact.system.niveau}}</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>

    {{!-- Ressources Tab --}}
    <div class="tab ressources" data-group="primary" data-tab="ressources">

      <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">Ressources</label></h3>
              </span>
              <div class="item-filler">&nbsp;</div>
            </li>
            {{#each ressources as |ressource key|}}
            <li class="item flexrow " data-item-id="{{ressource._id}}" data-item-type="competence">
              <img class="item-name-img" src="{{ressource.img}}" />
              <span class="item-name-label competence-name">{{ressource.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">
      <span>
        <h3>Description</h3>
      </span>
      <div class="medium-editor item-text-long-line">
        {{editor description target="system.description" button=true owner=owner editable=editable}}
      </div>

    </div>

  </section>
</form>