{{#each system.carac as |carac key|}}
{{#if (and (eq key 'taille') (eq @root.system.definition.typeentite 'nonincarne'))}}
{{else}}
  <li class="caracteristique flexrow list-item {{#if carac.isLevelUp}}xp-level-up{{/if}}" data-attribute="{{key}}">
    {{#if (eq key 'taille')}}
      <span class="carac-label" name="system.carac.{{key}}.label">{{carac.label}}</span>
      <input class="carac-value" type="number" name="system.carac.{{key}}.value" value="{{carac.value}}" data-dtype="number" {{#unless @root.options.vueDetaillee}}disabled{{/unless}} />
      <label class="carac-xp"/>
    {{else}}
    {{#if (actor-default @root.type 'carac' key 'derivee')}}
      <span class="carac-label" name="system.carac.{{key}}.label"><a class="roll-carac" data-carac-name={{key}}>{{carac.label}}</a></span>
      <label class="carac-value">{{carac.value}}</label>
      <label class="carac-xp"/>
    {{else}}
      {{#if carac.isLevelUp}}
        <span class="carac-label tooltip" name="system.carac.{{key}}.label">
          <span class="tooltiptext ttt-levelup">
            Vous pouvez dépenser {{carac.xpNext}} points d'Experience pour augmenter de 1 votre caractéristique {{carac.label}}
          </span>
          <a name={{key}}>{{carac.label}}</a>
          <a class="carac-xp-augmenter" name="augmenter.{{key}}" data-tooltip="Augmenter la caractéristique avec l'expérience">
            <i class="fas fa-arrow-alt-circle-up"></i>
          </a>
        </span>
      {{else}}
        <span class="carac-label tooltip" name="system.carac.{{key}}.label"><a class="roll-carac" data-carac-name={{key}}>{{carac.label}}</a></span>
      {{/if}}
      <input class="carac-value" type="number" name="system.carac.{{key}}.value" value="{{carac.value}}" data-dtype="number" {{#unless @root.options.vueDetaillee}}disabled{{/unless}} />
      <span class="carac-xp tooltip">
        <input class="carac-xp" type="number" name="system.carac.{{key}}.xp" value="{{carac.xp}}" data-dtype="number" {{#unless @root.options.vueDetaillee}}disabled{{/unless}} />
        <span class="tooltiptext ttt-xp">Vous devez acquérir {{carac.xpNext}} points d'Experience pour augmenter de 1 votre {{carac.label}}</span>      
      </span>
      {{/if}}
    {{/if}}
  </li>
  {{/if}}
{{/each}}
