<fieldset>
    <legend>{{ localize "DND5E.CHECK.FIELDS.check.label" }}</legend>
    {{ formField fields.check.fields.associated value=source.check.associated options=associatedOptions rootId=partId }}
    {{ formField fields.check.fields.ability value=source.check.ability options=abilityOptions rootId=partId }}
    {{#with fields.check.fields.dc.fields as |fields|}}
    {{ formField fields.calculation value=../activity.check.dc.calculation options=../calculationOptions
                 rootId=@root.partId }}
    {{#if (not ../source.check.dc.calculation)}}
    {{ formField fields.formula value=../source.check.dc.formula rootId=@root.partId }}
    {{else}}
    {{ formField fields.formula name="" value=(localize "DND5E.SAVE.FIELDS.save.dc.DefaultFormula") disabled=true
                 rootId=@root.partId }}
    <input type="hidden" name="check.dc.formula" value="{{ ../source.check.dc.formula }}">
    {{/if}}
    {{/with}}
</fieldset>
