<section class="enemy-main enemy-main-{{ifThen isPlayMode 'play' 'edit'}}">
  <fieldset>
    <legend>{{localize "HAMALRON.Label.character"}}</legend>
    <div class="enemy-pc enemy-pc-{{ifThen isPlayMode 'play' 'edit'}}">
      <div class="enemy-left">
        <div class="enemy-left-image">
          <img class="enemy-img" src="{{actor.img}}" data-edit="img" data-action="editImage"
            data-tooltip="{{actor.name}}" />
        </div>

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

        <fieldset class="enemy-definition">
          {{formField systemFields.enemyType value=system.enemyType rootId=partId disabled=isPlayMode}}
          {{formField systemFields.flavorText value=system.flavorText rootId=partId disabled=isPlayMode}}
        </fieldset>

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

  <fieldset class="enemy-stats enemy-stats-{{ifThen isPlayMode 'play' 'edit'}}">
    <legend>{{localize "HAMALRON.Label.stats"}}</legend>
    <div class="enemy-stat">
      <label class="rollable" data-roll-type="stat" data-stat-id="flesh"><i class="fa-regular fa-dice"></i>{{localize
        "HAMALRON.Label.flesh"}}</label>
      {{formInput systemFields.stats.fields.flesh.fields.value value=system.stats.flesh.value rootId=partId disabled=isPlayMode type="number" }}
    </div>
    <div class="enemy-stat">
      <label class="rollable" data-roll-type="stat" data-stat-id="skin"><i class="fa-regular fa-dice"></i>{{localize
        "HAMALRON.Label.skin"}}</label>
      {{formInput systemFields.stats.fields.skin.fields.value value=system.stats.skin.value rootId=partId disabled=isPlayMode type="number" }}
    </div>
    <div class="enemy-stat">
      <label class="rollable" data-roll-type="stat" data-stat-id="heart"><i class="fa-regular fa-dice"></i>{{localize
        "HAMALRON.Label.heart"}}</label>
      {{formInput systemFields.stats.fields.heart.fields.value value=system.stats.heart.value rootId=partId disabled=isPlayMode type="number" }}
    </div>
    <div class="enemy-stat">
      <label class="rollable" data-roll-type="stat" data-stat-id="mind"><i class="fa-regular fa-dice"></i>{{localize
        "HAMALRON.Label.mind"}}</label>
      {{formInput systemFields.stats.fields.mind.fields.value value=system.stats.mind.value rootId=partId disabled=isPlayMode type="number" }}
    </div>
    <div class="enemy-stat">
      <label class="rollable" data-roll-type="stat" data-stat-id="soul"><i class="fa-regular fa-dice"></i>{{localize
        "HAMALRON.Label.soul"}}</label>
      {{formInput systemFields.stats.fields.soul.fields.value value=system.stats.soul.value rootId=partId disabled=isPlayMode type="number" }}
    </div>
  </fieldset>

</section>