<fieldset>
    <legend>{{ localize "DND5E.CAST.FIELDS.spell.label" }}</legend>
    {{ formField fields.spell.fields.ability value=source.spell.ability options=abilityOptions }}
    {{#if levelOptions}}
    {{ formField fields.spell.fields.level value=source.spell.level options=levelOptions }}
    {{/if}}
    {{ formField fields.spell.fields.properties value=source.spell.properties options=propertyOptions }}
    {{#with fields.spell.fields.challenge.fields as |fields|}}
    {{ formField fields.override value=../source.spell.challenge.override input=../inputs.createCheckboxInput }}
    {{#if ../source.spell.challenge.override}}
    {{ formField fields.attack value=../source.spell.challenge.attack }}
    {{ formField fields.save value=../source.spell.challenge.save }}
    {{/if}}
    {{/with}}
</fieldset>
