<section class="character-main character-main-{{ifThen isPlayMode 'play' 'edit'}}">
  {{!log "character-main" this}}
  <fieldset>
    <legend>{{localize "FTLNOMAD.Label.character"}}</legend>
    <div class="character-pc character-pc-{{ifThen isPlayMode 'play' 'edit'}}">
      <div class="character-left">
        <div class="character-left-image">
          <img class="character-img" src="{{actor.img}}" data-edit="img" data-action="editImage"
            data-tooltip="{{actor.name}}" />
        </div>
        <fieldset class="character-hp">
          <legend>{{localize "FTLNOMAD.Label.Stamina"}}</legend>
          <div class="flexrow">
            {{formField systemFields.health.fields.staminaValue value=health.staminaValue}}
            {{formField systemFields.health.fields.staminaMax value=system.health.staminaMax rootId=partId disabled=true}}
          </div>
          <div class="flexrow">
            {{formField systemFields.health.fields.wounds value=system.health.wounds }}
          </div>
        </fieldset>

      </div>
      <div class="character-right">
        <div class="character-name">
          {{formInput fields.name value=source.name rootId=partId disabled=isPlayMode}}
          <a class="control" data-action="toggleSheet" data-tooltip="FTLNOMAD.ToggleSheet" data-tooltip-direction="UP">
            <i class="fa-solid fa-user-{{ifThen isPlayMode 'lock' 'pen'}}"></i>
          </a>
        </div>

        <fieldset class="character-spec">
          {{formField systemFields.concept value=system.concept rootId=partId disabled=isPlayMode}}
          {{formField systemFields.species value=system.species rootId=partId disabled=isPlayMode}}
          {{formField systemFields.archetype value=system.archetype rootId=partId disabled=isPlayMode}}
          <div class="hero-armor">          
            {{formField systemFields.heroPoints value=system.heroPoints rootId=partId disabled=isPlayMode}}
            {{formField systemFields.armor.fields.value value=system.armor.value rootId=partId disabled=isPlayMode}}
          </div>
        </fieldset>

      </div>
    </div>
  </fieldset>

  <fieldset class="character-skills character-skills-{{ifThen isPlayMode 'play' 'edit'}}">
    <legend>{{localize "FTLNOMAD.Label.skills"}}</legend>
    <div class="character-skill">
      <img src="systems/fvtt-ftl-nomad/assets/icons/icon_combat.svg" class="icon-skill" />
      <label class="rollable" data-roll-type="skill" data-skill-id="combat">{{localize
        "FTLNOMAD.Label.combat"}}</label>
      {{formInput systemFields.skills.fields.combat.fields.value value=system.skills.combat.value rootId=partId disabled=isPlayMode type="number" }}
    </div>
    <div class="character-skill">
      <img src="systems/fvtt-ftl-nomad/assets/icons/icon_knowledge.svg" class="icon-skill" />
      <label class="rollable" data-roll-type="skill" data-skill-id="knowledge">{{localize
        "FTLNOMAD.Label.knowledge"}}</label>
      {{formInput systemFields.skills.fields.knowledge.fields.value value=system.skills.knowledge.value
      rootId=partId disabled=isPlayMode  type="number"}}
    </div>
    <div class="character-skill">
      <img src="systems/fvtt-ftl-nomad/assets/icons/icon_social.svg" class="icon-skill" />
      <label class="rollable" data-roll-type="skill" data-skill-id="social">{{localize
        "FTLNOMAD.Label.social"}}</label>
      {{formInput systemFields.skills.fields.social.fields.value value=system.skills.social.value
      rootId=partId disabled=isPlayMode  type="number"}}
    </div>
    <div class="character-skill">
      <img src="systems/fvtt-ftl-nomad/assets/icons/icon_physical.svg" class="icon-skill" />
      <label class="rollable" data-roll-type="skill" data-skill-id="physical">{{localize
        "FTLNOMAD.Label.physical"}}</label>
      {{formInput systemFields.skills.fields.physical.fields.value value=system.skills.physical.value
      rootId=partId disabled=isPlayMode  type="number"}}
    </div>
    <div class="character-skill">
      <img src="systems/fvtt-ftl-nomad/assets/icons/icon_stealth.svg" class="icon-skill" />
      <label class="rollable" data-roll-type="skill" data-skill-id="stealth">{{localize
        "FTLNOMAD.Label.stealth"}}</label>
      {{formInput systemFields.skills.fields.stealth.fields.value value=system.skills.stealth.value
      rootId=partId disabled=isPlayMode  type="number"}}
    </div>
    <div class="character-skill">
      <img src="systems/fvtt-ftl-nomad/assets/icons/icon_vehicles.svg" class="icon-skill" />
      <label class="rollable" data-roll-type="skill" data-skill-id="vehicles">{{localize
        "FTLNOMAD.Label.vehicles"}}</label>
      {{formInput systemFields.skills.fields.vehicles.fields.value value=system.skills.vehicles.value
      rootId=partId disabled=isPlayMode  type="number"}}
    </div>
    <div class="character-skill">
      <img src="systems/fvtt-ftl-nomad/assets/icons/icon_technology.svg" class="icon-skill" />
      <label class="rollable" data-roll-type="skill" data-skill-id="technology">{{localize
        "FTLNOMAD.Label.technology"}}</label>
      {{formInput systemFields.skills.fields.technology.fields.value value=system.skills.technology.value
      rootId=partId disabled=isPlayMode  type="number"}}
    </div>
  </fieldset>



</section>