<header class="sheet-header flexrow">
  <img class="profile-img" src="{{img}}" data-action="editImage" data-edit="img" title="{{name}}" />
  <div class="header-fields flexcol">
    <h1 class="charname">
      <input name="name" type="text" value="{{name}}" placeholder="Name" />
    </h1>
    {{#if (eq type "annency")}}
    {{!-- Annency header: description --}}
    <div class="flexrow">
      <label class="item-name-label-medium">{{localize "ECRY.ui.description"}} :</label>
      <textarea rows="3" name="system.base.description">{{system.base.description}}</textarea>
    </div>
    {{else}}
    {{!-- PC/NPC header: spleen, ideal, traits (rows always visible, controls conditional on item existence) --}}
    <div class="flexrow actor-header-traits">
      <ul>
        <li class="flexrow item" data-item-id="{{spleen._id}}">
          <label class="item-field-label-short">{{localize "ECRY.ui.spleen"}} :</label>
          <label class="item-name-label-long" title="{{spleen.name}}">{{spleen.name}}</label>
          {{#if spleen}}
          <div class="item-controls item-controls-fixed">
            <a data-action="itemEdit" data-item-id="{{spleen._id}}" title="{{localize 'ECRY.ui.edit'}}"><i class="fas fa-edit"></i></a>
            <a data-action="itemDelete" data-item-id="{{spleen._id}}" title="{{localize 'ECRY.ui.delete'}}"><i class="fas fa-trash"></i></a>
          </div>
          {{/if}}
        </li>
        <li class="item flexrow" data-item-id="{{ideal._id}}">
          <label class="item-field-label-short">{{localize "ECRY.ui.ideal"}} :</label>
          <label class="item-name-label-long" title="{{ideal.name}}">{{ideal.name}}</label>
          {{#if ideal}}
          <div class="item-controls item-controls-fixed">
            <a data-action="itemEdit" data-item-id="{{ideal._id}}" title="{{localize 'ECRY.ui.edit'}}"><i class="fas fa-edit"></i></a>
            <a data-action="itemDelete" data-item-id="{{ideal._id}}" title="{{localize 'ECRY.ui.delete'}}"><i class="fas fa-trash"></i></a>
          </div>
          {{/if}}
        </li>
        <li class="item flexrow flexrow-no-expand flexrow-start">
          <label class="item-name-label-short">{{localize "ECRY.ui.traits"}} :</label>
          {{#each traits as |trait key|}}
          <label class="item-name-label-free" title="{{trait.name}}">
            <a data-action="itemEdit" data-item-id="{{trait._id}}">{{trait.name}}</a>{{#unless @last}},&nbsp;{{/unless}}
          </label>
          {{/each}}
        </li>
      </ul>
    </div>
    {{/if}}
  </div>
</header>
