{{#each settings as |setting key|}} {{#if (eq key "proficiencyVariant")}}
{{localize "PF2E.SETTINGS.Variant.Proficiency.Legend"}} {{formGroup setting.type value=setting.value choices=setting.choices rootId=../rootId classes="slim" localize=true}}
{{#> pwolModifiers @root}}{{/pwolModifiers}}
{{else if (not setting.pwolModifier)}} {{formGroup setting.type value=setting.value choices=setting.choices classes="slim" rootId=../rootId localize=true}} {{/if}} {{/each}}
{{~#*inline "pwolModifiers"~}} {{#with settings.proficiencyUntrainedModifier as |subsetting|}} {{formGroup subsetting.type value=subsetting.value rootId=../rootId classes="slim" localize=true disabled=(not ../settings.proficiencyVariant.value)}} {{/with}} {{#with settings.proficiencyTrainedModifier as |subsetting|}} {{formGroup subsetting.type value=subsetting.value rootId=../rootId classes="slim" localize=true disabled=(not ../settings.proficiencyVariant.value)}} {{/with}} {{#with settings.proficiencyExpertModifier as |subsetting|}} {{formGroup subsetting.type value=subsetting.value rootId=../rootId classes="slim" localize=true disabled=(not ../settings.proficiencyVariant.value)}} {{/with}} {{#with settings.proficiencyMasterModifier as |subsetting|}} {{formGroup subsetting.type value=subsetting.value rootId=../rootId classes="slim" localize=true disabled=(not ../settings.proficiencyVariant.value)}} {{/with}} {{#with settings.proficiencyLegendaryModifier as |subsetting|}} {{formGroup subsetting.type value=subsetting.value rootId=../rootId classes="slim" localize=true disabled=(not ../settings.proficiencyVariant.value)}} {{/with}} {{~/inline~}}