<h4 class="item-list-title">Compétences{{#if @root.options.vueDetaillee}} <a class="competence-add" data-tooltip="Ajouter une compétence">
  <i class="fa-solid fa-books-medical"></i>
</a>{{/if}}</h4>
<ul class="item-list alterne-list">
  {{#each competences as |comp key|}}
  <li class="item flexrow list-item" data-item-id="{{comp._id}}">
    <a class="list-item-label roll-competence">
      <img class="sheet-competence-img" src="{{comp.img}}" data-tooltip="{{comp.name}}"/>
      <span>{{comp.name}}</span>
    </a>
    <input name="{{comp._id}}.carac" class="competence-carac creature-carac" type="number" data-dtype="Number"
      compname="{{comp.name}}" value="{{comp.system.carac_value}}" 
      {{#unless @root.options.vueDetaillee}}disabled{{/unless}}/>
    <input name="{{comp._id}}.niveau" class="competence-value creature-niveau" type="text" data-dtype="Number"
      compname="{{comp.name}}" value="{{plusMoins comp.system.niveau}}" 
      {{#unless @root.options.vueDetaillee}}disabled{{/unless}}
      />
    <input class="competence-damage creature-dommages" type="text" data-dtype="Number" 
      {{#if comp.isdommages}}
        compname="{{comp.name}}" name="{{comp._id}}.dommages"
        value="{{plusMoins comp.system.dommages}}" 
        {{#unless @root.options.vueDetaillee}}disabled{{/unless}}
      {{else}}disabled{{/if}}
      />
    {{>'systems/foundryvtt-reve-de-dragon/templates/actor/item-action-controls.hbs' item=comp options=@root.options}}
  </li>
  {{/each}}
</ul>
