<section class="{{cssClass}}" autocomplete="off">
  {{> systems/fvtt-les-heritiers/templates/partial-item-header.hbs}}

  {{> systems/fvtt-les-heritiers/templates/partial-item-nav.hbs}}


    {{> systems/fvtt-les-heritiers/templates/partial-item-description.hbs}}

    <div class="tab details" data-group="primary" data-tab="details">

      <ul class="item-list alternate-list">
        <li class="flexrow item">
          <label class="generic-label item-field-label-long2">Compétence de Magie </label>
          <select class="status-small-label color-class-common item-field-label-long" type="text"
            name="system.competence" value="{{system.competence}}" data-dtype="String">
            {{selectOptions competencesMagie selected=system.competence valueAttr="name" labelAttr="name"}}
          </select>
        </li>

        {{#if (eq system.competence "Magie du Clan")}}
        <li class="flexrow item">
          <label class="generic-label item-field-label-long2">Souffle </label>
          <select class="status-small-label color-class-common item-field-label-long" type="text" name="system.souffle"
            value="{{system.souffle}}" data-dtype="string">
            {{selectOptions config.soufflesMagieDuClan selected=system.souffle}}
          </select>
        </li>
        {{/if}}

        <li class="flexrow item">
          <label class="generic-label item-field-label-long2">Carac 1 </label>
          <select class="status-small-label color-class-common item-field-label-long" type="text" name="system.carac1"
            value="{{system.carac1}}" data-dtype="string">
            {{selectOptions config.caracList selected=system.carac1}}
          </select>
        </li>

        <li class="flexrow item">
          <label class="generic-label item-field-label-long2">Carac 2 </label>
          <select class="status-small-label color-class-common item-field-label-long" type="text" name="system.carac2"
            value="{{system.carac2}}" data-dtype="string">
            <option value="none">Aucune</option>
            {{selectOptions config.caracList selected=system.carac2}}
          </select>
        </li>

        <li class="flexrow item">
          <label class="generic-label item-field-label-long2">Niveau</label>
          <select class="status-small-label color-class-common item-field-label-long" type="text" name="system.niveau"
            value="{{system.niveau}}" data-dtype="string">
            {{selectOptions config.listNiveauSort selected=system.niveau}}
          </select>
        </li>

        <li class="flexrow item">
          <label class="generic-label item-field-label-long2">Sort Informatif?</label>
          <input type="checkbox" name="system.informatif" {{#if system.informatif}} checked {{/if}} />
        </li>

        {{#if system.informatif}}
        <li class="flexrow item">
          <label class="generic-label item-field-label-long2">Texte Informatif</label>
          <textarea class="padd-right status-small-label color-class-common item-field-label-long3"
            name="system.texteinformatif" data-dtype="String">{{system.texteinformatif}}</textarea>
        </li>
        {{/if}}

        <li class="flexrow item">
          <label class="generic-label item-field-label-long2"
            data-tooltip="A renseigner si le SD n'est pas celui du niveau par défaut">SD spécial</label>
          <input type="text" class="padd-right status-small-label color-class-common item-field-label-short"
            name="system.sdspecial" value="{{system.sdspecial}}" data-dtype="String" />
        </li>

        <!--
        <li class="flexrow item">
          <label class="generic-label item-field-label-long2">Rang</label>
          <select class="status-small-label color-class-common item-field-label-long" type="text" name="system.rang"
            value="{{system.rang}}" data-dtype="string">
            {{selectOptions config.listRangSort selected=system.rang}}
          </select>
        </li>
        -->

        <li class="flexrow item">
          <label class="generic-label item-field-label-long2">Durée </label>
          <input type="text" class="padd-right status-small-label color-class-common item-field-label-long3"
            name="system.duree" value="{{system.duree}}" data-dtype="String" />
        </li>

        <li class="flexrow item">
          <label class="generic-label item-field-label-long2">Portée </label>
          <input type="text" class="padd-right status-small-label color-class-common item-field-label-long3"
            name="system.portee" value="{{system.portee}}" data-dtype="String" />
        </li>

        <li class="flexrow item">
          <label class="generic-label item-field-label-long2">Concentration </label>
          <input type="text" class="padd-right status-small-label color-class-common item-field-label-long3"
            name="system.concentration" value="{{system.concentration}}" data-dtype="String" />
        </li>

        <li class="flexrow item">
          <label class="generic-label item-field-label-long2">Résistance</label>
          <input type="text" class="padd-right status-small-label color-class-common item-field-label-long3"
            name="system.resistance" value="{{system.resistance}}" data-dtype="String" />
          </select>
        </li>

        <li class="flexrow item">
          <label class="generic-label item-field-label-long2">Critique</label>
          <input type="text" class="padd-right status-small-label color-class-common item-field-label-long3"
            name="system.critique" value="{{system.critique}}" data-dtype="String" />
          </select>
        </li>

        <li class="flexrow item">
          <label class="generic-label item-field-label-long2">Ingrédients</label>
          <input type="text" class="padd-right status-small-label color-class-common item-field-label-long3"
            name="system.ingredients" value="{{system.ingredients}}" data-dtype="String" />
          </select>
        </li>

        <li class="flexrow item">
          <label class="generic-label item-field-label-long2">Cout spécial d'activation</label>
          <input type="text" class="padd-right status-small-label color-class-common item-field-label-long3"
            name="system.coutactivation" value="{{system.coutactivation}}" data-dtype="String" />
        </li>

      </ul>
    </div>

  
</section>
