{{!-- HEADER --}}
<header class="char-header grid grid-2col">
  <section class="char-details">
    <h1 class="char-name flexrow flex-group-left w-full">
      {{#if isEditMode}}
      <input name="name" type="text" value="{{actor.name}}"
        placeholder="{{localize "VERMINE.CharacterNamePlaceholder"}}" />
      {{else}}
      <span class="char-name-value">{{actor.name}}</span>
      {{/if}}
    </h1>
    <div class="profile flexrow flex-group-center">
      {{#if isEditMode}}
      <input name="system.identity.profile" type="text"
        value="{{system.identity.profile }}" data-dtype="String"
        placeholder="{{ localize 'VERMINE.ProfilePlaceholder' }}" />
      {{else}}
      <span>{{#if system.identity.profile}}{{system.identity.profile}}{{else}}{{ localize 'VERMINE.ProfilePlaceholder' }}{{/if}}</span>
      {{/if}}
    </div>
    <div class="flexrow flex-group-center">
      <label for="system.identity.age">{{ localize 'IDENTITY.age' }}</label>
      <div class="flexrow row">
        {{#if isEditMode}}
        <input type="text" name="system.identity.age"
          value="{{ system.identity.age }}" />
        {{else}}
        <span>{{ system.identity.age }}</span>
        {{/if}}
        <span id="ageType">({{ ageType "name" system.identity.ageType }})</span>
      </div>
    </div>
  </section>
  <section class="char-level">
    <h1 class="char-vermine2047 flexrow flex-group-left w-full">
      {{#if (eq system.identity.totem "")}}
      <a data-action="chooseTotem" class="chooseTotem">Choisissez votre totem</a>
      {{ else }}
      <a data-action="chooseTotem" class="chooseTotem">{{ smarttl "TOTEMS" system.identity.totem }}</a>
      {{/if}}
    </h1>
    <div class="reputation flexrow flex-group-center">
      <label>{{ localize 'VERMINE.reputation' }}</label>
      {{#if isEditMode}}
      <input name="system.attributes.reputation.value" data-type="Number" type="number"
        value="{{system.attributes.reputation.value}}" />
      {{else}}
      <span>{{system.attributes.reputation.value}}</span>
      {{/if}}
    </div>
  </section>
</header>
