<ol class='items-list'>
  {{#if (isCreature charType)}}
  <li class='item flexrow item-header'>
    <div class='item-name left'>
      {{localize "BOL.ui.biosize"}}
    </div>
    <div class='form-fields center'>
      <select class='header-field-value size' name='system.details.size' data-dtype='String'>
        {{#select details.size}}
        {{#each config.creatureSize as |sizeData id|}}
        <option value="{{id}}">
          {{localize sizeData.label}}
        </option>
        {{/each}}
        {{/select}}
      </select>
    </div>
  </li>

  <li class='item flexrow item-header'>
    <div class='item-name left'>
      {{localize "BOL.ui.undead"}}
    </div>
    <div class="form-fields center">
      <input class="field-value" type="checkbox" name="system.isundead" {{checked isUndead}}>
    </div>
  </li>
  {{else}}
  <li class='item flexrow item-header'>
    <div class='item-name left'>
      {{localize 'BOL.ui.biosize'}}
    </div>
    <div class='item-field flex2 left'>
      <input type='text' name='system.details.height' value="{{details.height}}" />
    </div>
    <div class='item-name right'>
      {{localize 'BOL.ui.bioweight'}}
    </div>
    <div class='item-field flex2'>
      <input type='text' name='system.details.weight' value="{{details.weight}}" />
    </div>
    <div class='item-name  right'>
      {{localize 'BOL.ui.bioage'}}
    </div>
    <div class='item-field flex2'>
      <input type='text' name='system.details.age' value="{{details.age}}" />
    </div>
  </li>
  <li class='item flexrow item-header'>
    <div class='item-name left'>
      {{localize 'BOL.ui.biohair'}}
    </div>
    <div class='item-field flex2 left'>
      <input type='text' name='system.details.hair' value="{{details.hair}}" />
    </div>
    <div class='item-name right'>
      {{localize 'BOL.ui.bioeyes'}}
    </div>
    <div class='item-field flex2'>
      <input type='text' name='system.details.eyes' value="{{details.eyes}}" />
    </div>
  </li>
  <li class='item flexrow item-header'>
    <div class='item-name left'>
      {{localize 'BOL.ui.biosigns'}}
    </div>
    <div class='item-field flex2 left'>
      <input type='text' name='system.details.signs' value="{{details.signs}}" />
    </div>
  </li>

    {{#if (ne charType "player")}}
      <li class='item flexrow item-header'>
      <div class='item-name left'>
        {{localize "BOL.ui.undead"}}
      </div>
      <div class="form-fields center">
        <input class="field-value" type="checkbox" name="system.isundead" {{checked isUndead}}>
      </div>
    </li>
    {{/if}}
  {{/if}}
</ol>

{{#if (and (not isAstrologer) (countKeys horoscopeGroupList))}}
{{> "systems/bol/templates/actor/parts/tabs/actor-horoscope-group.hbs"}}
{{/if}}

<ol class='items-list'>
  <li class='item flexrow item-header'>
    <div class='item-name flex4 left'>
      {{localize 'BOL.ui.biodescription'}}
    </div>
    <div class='item-field flex1 right'></div>
  </li>
</ol>

{{formInput systemFields.details.fields.biography enriched=biography value=system.details.biography name="system.details.biography" toggled=isEditable}}

{{#if (eq charType "player")}}
<ol class="items-list">
  <li class="item flexrow item-header">
    <div class="item-name flex2 left">{{localize "BOL.ui.xplog"}}</div>
    <div class="item-field flex1 center">{{localize "BOL.ui.type"}}</div>
    <div class="item-field flex1 center">{{localize "BOL.ui.date"}}</div>
    <div class="item-field flex1 center">{{localize "BOL.ui.name"}}</div>
    <div class="item-field flex1 center">{{localize "BOL.ui.cost"}}</div>
    <div class="item-field flex1 center">{{localize "BOL.ui.value"}}</div>
    <div class="item-field flex1 right">
      <a class="xplog-add"><i class="fas fa-plus-square"></i></a>
    </div>
  </li>
  {{#each xplog as |xp idx|}}
  <li class="item flexrow" data-item-id="{{xp._id}}">
    <h4 class="item-name flex2 left">
      <div class="item-image"><img src="{{xp.img}}" title="{{xp.name}}" /></div>
      <a class="item-edit">{{xp.name}}</a>
    </h4>
    <div class="item-field flex1 center">
      <span class="item-field">{{localize (concat "BOL.ui." xp.system.properties.xptype)}}</span>
    </div>
    <div class="item-field flex1 center">
      <span class="item-field">{{xp.system.properties.xpdate}}</span>
    </div>

    <div class="item-field flex1 center">
      {{#if (eq xp.system.properties.xptype "attribute")}}
      <span class="item-field">{{localize (concat "BOL.attributes." xp.system.properties.xpname)}}</span>
      {{else}}
      {{#if (eq xp.system.properties.xptype "aptitude")}}
      <span class="item-field">{{localize (concat "BOL.aptitudes." xp.system.properties.xpname)}}</span>
      {{else}}
      <span class="item-field">{{xp.system.properties.xpname}}</span>
      {{/if}}
      {{/if}}
    </div>
    <div class="item-field flex1 center">
      <span class="item-field">{{xp.system.properties.xpcost}}</span>
    </div>
    <div class="item-field flex1 center">
      <span class="item-field">{{xp.system.properties.xpvalue}}</span>
    </div>
    <div class="item-field flex1 right">
      <a class="item-control item-delete" title="{{localize " BOL.ui.delete"}}"><i class="fas fa-trash"></i></a>
    </div>
  </li>
  {{/each}}
</ol>
{{/if}}

<ol class='items-list'>
  <li class='item flexrow item-header'>
    <div class='item-name flex4 left'>
      {{localize 'BOL.ui.bionotes'}}
    </div>
    <div class='item-field flex1 right'></div>
  </li>
</ol>
{{formInput systemFields.details.fields.notes enriched=notes value=system.details.notes name="system.details.notes" toggled=isEditable}}