{{ localize "DND5E.SpellDetails" }} {{!-- Spell Level --}} {{ formField fields.level value=source.level choices=CONFIG.spellLevels localize=true rootId=partId }} {{!-- Spell School --}} {{ formField fields.school value=source.school choices=CONFIG.spellSchools labelAttr="label" blank="" localize=true rootId=partId }} {{!-- Spell Components --}} {{ formField fields.properties options=properties.options label="DND5E.SpellComponents" localize=true input=inputs.createMultiCheckboxInput stacked=true classes="checkbox-grid checkbox-grid-3" }} {{!-- Material Components --}} {{#if properties.object.material}}
{{!-- Material Supply --}} {{ formField fields.materials.fields.supply value=source.materials.supply label="DND5E.Supply" localize=true classes="label-top" placeholder="0" rootId=partId }} {{!-- Material Cost --}}
{{ formInput fields.materials.fields.cost value=source.materials.cost placeholder="—" rootId=partId }}
{{!-- Material Consumption --}} {{ formField fields.materials.fields.consumed value=source.materials.consumed label="DND5E.Consumed" localize=true input=inputs.createCheckboxInput classes="checkbox" rootId=partId }}
{{!-- Materials Description --}} {{ formInput fields.materials.fields.value value=source.materials.value input=inputs.createTextInput classes="full-width" rootId=partId }}
{{/if}} {{!-- Spellcasting --}}
{{!-- Method --}} {{ formField fields.method value=source.method options=spellcastingMethods label="DND5E.Method" classes="label-top" localize=true rootId=partId }} {{!-- Prepared --}} {{#if canPrepare}} {{ formField fields.prepared value=source.prepared choices=CONFIG.spellPreparationStates labelAttr="label" valueAttr="value" label="DND5E.Preparation" classes="label-top" localize=true rootId=partId }} {{/if}}
{{!-- Spell Source --}} {{#if isEmbedded}} {{ formField fields.sourceItem value=source.sourceItem localize=true options=spellcastingClasses blank="" label="DND5E.SourceItem.Label" rootId=partId disabled=sourceItemLocked hint=sourceItemHint }} {{ formField fields.ability value=source.ability localize=true choices=CONFIG.abilities labelAttr="label" blank=defaultAbility rootId=partId }} {{/if}}
{{ localize "DND5E.Casting" }} {{!-- Activation --}} {{> "dnd5e.field-activation" activation=system.activation fields=fields.activation.fields data=source.activation activationTypes=activationTypes inputs=inputs label="DND5E.SpellCastTime" }} {{!-- Range --}} {{> "dnd5e.field-range" range=system.range fields=fields.range.fields data=source.range rangeTypes=rangeTypes inputs=inputs }} {{!-- Duration --}} {{> "dnd5e.field-duration" duration=system.duration fields=fields.duration.fields data=source.duration durationUnits=durationUnits inputs=inputs }}
{{> "dnd5e.field-targets" target=system.target fields=fields.target.fields data=source.target inputs=inputs disabled=false }}