{{#if (and children selectable topLevel (not otherGroup))}}
  1. {{ formInput field name=(concat keyPath @key) value=chosen input=input }}
  2. {{/if}} {{#each choices}}
  3. {{#if icon}} {{ dnd5e-icon icon.src alt=icon.alt classes=icon.classes }} {{/if}} {{#unless (eq selectable false)}}
    {{ formInput ../field name=(concat ../keyPath @key) value=chosen disabled=disabled input=../input }}
    {{/unless}} {{#if children}} {{> "dnd5e.traits-list" choices=children topLevel=false keyPath=../keyPath field=../field input=../input }} {{/if}}
  4. {{/each}}