<section class="tab-panel {{tab.cssClass}}">
  <div class="ability-grid">
    {{#each abilityList}}
      <div class="ability-card">
        <label class="rollable ability-label" data-roll-type="ability" data-ability-id="{{id}}">{{label}}</label>
        <div class="ability-score">
          <select class="numeric-input ability-input" name="system.abilities.{{id}}.value">
            {{#each @root.selectOptions.abilityValues}}
              <option value="{{value}}" {{#if (isEqual ../value value)}}selected{{/if}}>{{label}}</option>
            {{/each}}
          </select>
        </div>
      </div>
    {{/each}}
    <div class="ability-card ability-card-defense">
      <label class="rollable ability-label" data-roll-type="defense">{{localize "MGNE.Common.Defense"}}</label>
      <div class="ability-score ability-score-text">
        <span class="ability-defense-main">DR 12</span>
        <small class="ability-defense-sub">{{localize "MGNE.Abilities.agility"}}</small>
      </div>
    </div>
    <div class="ability-card ability-card-armor">
      <label class="rollable ability-label" data-roll-type="armor">{{localize "MGNE.Common.ArmorSave"}}</label>
      <div class="ability-score ability-score-text">
        <span class="ability-defense-main">{{#if system.armorFormula}}{{system.armorFormula}}{{else}}—{{/if}}</span>
        <small class="ability-defense-sub">{{localize "MGNE.Common.ArmorDie"}}</small>
      </div>
    </div>
  </div>

  <div class="grid two">
    <div class="inventory-section">
      <div class="inventory-header">
        <h3>{{localize "MGNE.Common.Description"}}</h3>
      </div>
      <fieldset>
        {{formInput systemFields.description enriched=(lookup enrichedFields "description") value=system.description name="system.description" toggled=true}}
      </fieldset>
    </div>
    <div class="inventory-section">
      <div class="inventory-header">
        <h3>{{localize "MGNE.Common.Conditions"}}</h3>
      </div>
      <fieldset>
        {{#if valueConditions}}
          <div class="condition-value-grid">
            {{#each valueConditions}}
              <label>{{label}}</label>
              <select name="system.conditions.{{id}}.value">
                {{#each options}}
                  <option value="{{value}}" {{#if (isEqual ../value value)}}selected{{/if}}>{{label}}</option>
                {{/each}}
              </select>
            {{/each}}
          </div>
        {{/if}}
        {{#if flagConditions}}
          <div class="condition-flag-grid">
            {{#each flagConditions}}
              <label class="checkbox-line {{#if active}}active{{/if}}">
                <input type="checkbox" name="system.conditions.{{id}}.active" {{#if active}}checked{{/if}}>
                {{label}}
              </label>
            {{/each}}
          </div>
        {{/if}}
      </fieldset>
    </div>
  </div>
</section>
