<section class="army-main army-main-{{ifThen isPlayMode 'play' 'edit'}}">
  <fieldset class="army-header-fieldset">
    <div class="army-header">

      <!-- Portrait -->
      <div class="army-portrait-wrap">
        <img class="actor-img army-portrait" src="{{actor.img}}" data-edit="img" data-action="editImage" data-tooltip="{{actor.name}}" />
      </div>

      <!-- Name + Leader + Location -->
      <div class="army-header-body">

        <div class="character-name">
          {{formInput fields.name value=source.name rootId=partId disabled=isPlayMode}}
          <a class="control" data-action="toggleSheet" data-tooltip="OATHHAMMER.ToggleSheet" data-tooltip-direction="UP">
            <i class="fa-solid {{#if isPlayMode}}fa-shield-halved{{else}}fa-user-pen{{/if}}"></i>
          </a>
        </div>

        <!-- Leader -->
        <div class="army-leader-row" data-drop-target="leader">
          <span class="army-field-label">{{localize "OATHHAMMER.Label.Commander"}}</span>
          {{#if leader}}
          <img src="{{leader.img}}" class="army-leader-img" />
          <a class="army-leader-name" data-action="openLeader" data-tooltip="{{localize 'OATHHAMMER.Tooltip.OpenLeader'}}">{{leader.name}}</a>
          {{#unless isPlayMode}}
          <a class="army-leader-clear" data-action="clearLeader" data-tooltip="{{localize 'OATHHAMMER.Tooltip.ClearLeader'}}">
            <i class="fa-solid fa-times"></i>
          </a>
          {{/unless}}
          {{else}}
          <span class="army-field-empty">{{localize "OATHHAMMER.Label.DropLeaderHint"}}</span>
          {{/if}}
        </div>

        <!-- Location -->
        <div class="army-location-row">
          <span class="army-field-label">{{localize "OATHHAMMER.Label.Location"}}</span>
          {{formInput systemFields.location value=system.location name="system.location" placeholder="—" disabled=isPlayMode}}
        </div>

      </div><!-- /army-header-body -->
    </div>
  </fieldset>
</section>
