<div class="tab-sous-titre">{{ localize "CDE.Skills" }}</div>
<table class="cde-skills-table">
  {{#each systemData.skills as |skill key|}}
  <tr>
    <td class="click cde-die-cell" data-libel-id="{{key}}-skill">
      <span class="cde-dice-plate-css small" data-value="10"></span>
    </td>
    <td class="cde-skill-label"><b>{{ localize skill.label }}</b></td>
    <td class="cde-val-cell">
      <input class="cde-circle-input" type="number" min="0" placeholder="0" name="system.skills.{{@key}}.value" value="{{skill.value}}" />
    </td>
    <td class="cde-spec-cell">
      <input type="text" placeholder="{{ localize 'CDE.Specialities' }}…" name="system.skills.{{@key}}.specialities" value="{{skill.specialities}}" />
    </td>
    <td class="cde-bonus-cell"><b>+1D</b></td>
    <td class="click cde-die-cell" data-libel-id="{{key}}-special">
      <span class="cde-dice-plate-css small" data-value="10"></span>
    </td>
  </tr>
  {{/each}}
</table>

<div class="tab-sous-titre">{{ localize "CDE.Resources" }}</div>
<table class="cde-skills-table">
  {{#each systemData.resources as |resource key|}}
  <tr>
    <td class="noclick cde-die-cell" data-libel-id="{{key}}-resource">
      <span class="cde-dice-plate-css small" data-value="0"></span>
    </td>
    <td class="cde-skill-label"><b>{{ localize resource.label }}</b></td>
    <td class="cde-val-cell">
      <input class="cde-circle-input" type="number" min="0" placeholder="0" name="system.resources.{{@key}}.value" value="{{resource.value}}" />
    </td>
    <td class="cde-spec-cell">
      <input type="text" placeholder="{{ localize 'CDE.Fields' }}…" name="system.resources.{{@key}}.specialities" value="{{resource.specialities}}" />
    </td>
    <td class="cde-bonus-cell"><b>+1D</b></td>
    <td class="click cde-die-cell" data-libel-id="{{key}}-field">
      <span class="cde-dice-plate-css small" data-value="10"></span>
    </td>
    <td class="cde-check-cell">
      <input type="checkbox" name="system.resources.{{@key}}.debt" {{checked resource.debt}} title="{{ localize 'CDE.Debt' }}{{ localize resource.label }}" />
    </td>
  </tr>
  {{/each}}
</table>
