<section class="tab protagonist-{{tab.id}} {{tab.cssClass}}" data-tab="{{tab.id}}" data-group="{{tab.group}}">

  <fieldset>
    <legend>{{localize "CTHULHUETERNAL.Label.resources"}}</legend>
     <div class="resources">
      {{formField systemFields.resources.fields.permanentRating value=system.resources.permanentRating name="system.resources.permanentRating" localize=true}}
      <div>
        <span class="label-field">{{localize "CTHULHUETERNAL.Label.resourceChecks"}}</span>
        {{#each system.resources.checks as |check idx|}}
        <input class="san-checkbox" type="checkbox" data-action="updateCheckResource" data-index="{{@index}}"
          data-name="checks" {{#if check}} checked {{/if}}   {{#if (gte @index @root.system.resources.nbValidChecks)}} disabled {{/if}}>
        {{/each}}
      </div>
      <button class="resource-roll rollable" data-roll-type="resource"><img src="systems/fvtt-cthulhu-eternal/assets/ui/d100.svg" class="d100" />Resource roll</button>
      {{formField systemFields.resources.fields.hand value=system.resources.hand name="system.resources.hand" localize=true disabled=true}}
      {{formField systemFields.resources.fields.stowed value=system.resources.stowed name="system.resources.stowed" localize=true disabled=true}}
      {{formField systemFields.resources.fields.storage value=system.resources.storage name="system.resources.storage" localize=true disabled=true}}
      </div>
  </fieldset>

  <fieldset>
    <legend>{{localize "CTHULHUETERNAL.Label.biodata"}}</legend>
    <div class="adapted">
      {{formField systemFields.biodata.fields.adaptedToViolence value=system.biodata.adaptedToViolence name="system.biodata.adaptedToViolence" localize=true}}      
      {{formField systemFields.biodata.fields.adaptedToHelplessness value=system.biodata.adaptedToHelplessness name="system.biodata.adaptedToHelplessness" localize=true}}            
    </div>
    <div class="biodata">
      {{formField systemFields.biodata.fields.harshness value=system.biodata.harshness name="system.biodata.harshness" localize=true}}      
      {{formField systemFields.biodata.fields.age value=system.biodata.age name="system.biodata.age" localize=true classes="field-label"}}
      {{formField systemFields.biodata.fields.gender value=system.biodata.gender name="system.biodata.gender" localize=true classes="field-label"}}
      {{formField systemFields.biodata.fields.height value=system.biodata.height name="system.biodata.height" localize=true classes="field-label"}}
      {{formField systemFields.biodata.fields.eyes value=system.biodata.eyes name="system.biodata.eyes" localize=true classes="field-label"}}
      {{formField systemFields.biodata.fields.hair value=system.biodata.hair name="system.biodata.hair" localize=true classes="field-label"}}
      {{formField systemFields.biodata.fields.home value=system.biodata.home name="system.biodata.home" localize=true classes="field-label"}}
      {{formField systemFields.biodata.fields.birthplace value=system.biodata.birthplace name="system.biodata.birthplace" localize=true classes="field-label"}}
    </div>
  </fieldset>

  <fieldset>
    <legend>{{localize "CTHULHUETERNAL.Label.distinguishingFeatures"}}</legend>
    <div class="features">
      <div class="feature"> 
        <label>{{localize "CTHULHUETERNAL.Label.strShort"}}</label>
        {{formInput systemFields.characteristics.fields.str.fields.feature value=system.characteristics.str.feature localize=true}} 
      </div>
      <div class="feature"> 
        <label>{{localize "CTHULHUETERNAL.Label.dexShort"}}</label>
        {{formInput systemFields.characteristics.fields.dex.fields.feature value=system.characteristics.dex.feature localize=true}} 
      </div>
      <div class="feature"> 
        <label>{{localize "CTHULHUETERNAL.Label.conShort"}}</label>
        {{formInput systemFields.characteristics.fields.con.fields.feature value=system.characteristics.con.feature localize=true}} 
      </div>
      <div class="feature"> 
        <label>{{localize "CTHULHUETERNAL.Label.intShort"}}</label>
        {{formInput systemFields.characteristics.fields.int.fields.feature value=system.characteristics.int.feature localize=true}} 
      </div>
      <div class="feature"> 
        <label>{{localize "CTHULHUETERNAL.Label.powShort"}}</label>
        {{formInput systemFields.characteristics.fields.pow.fields.feature value=system.characteristics.pow.feature localize=true}} 
      </div>
      <div class="feature"> 
        <label>{{localize "CTHULHUETERNAL.Label.chaShort"}}</label>
        {{formInput systemFields.characteristics.fields.cha.fields.feature value=system.characteristics.cha.feature localize=true}} 
      </div>
    </div>
  </fieldset> 


  <fieldset>
    <legend>{{localize "CTHULHUETERNAL.Label.description"}}</legend>
    {{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
  </fieldset>
  
  <fieldset>
    <legend>{{localize "CTHULHUETERNAL.Label.notes"}}</legend>
    {{formInput systemFields.notes enriched=enrichedNotes value=system.notes name="system.notes" toggled=true}}
  </fieldset>
</section>